(_HowTo_ change menus.cfg, for example rename "Bookmarks" to "BOOKM")
Quote
cpm1a_new
Removing items from main menu works. but can I EDIT main menu item names?
i want to change"Bookmarks" to capitals --> "BOOKMARKS". if i edit line 369 in \browser\defaults\settings[b]menus.cfg[/b], the menu item just disappears
-----
just found that line 19 is also to be changed.
Hey that's great, you're really figuring it out now, howto manually change menus!
You just renamed the Bookmarks menu
- where it's created (line 19)
- AND where it's inserted into the Main menu (line 369)
That's perfectly okay, just has a little disadvantage:
the original menu names are often used by macros to add more functions to them.
To avoid this, a slightly more complicated method can be used.
This example is for adding at the end of menus.cfg
# Example: Change in Main menu "&Bookmarks" to "&BOOKM"
# Either change "&Bookmarks" where it's created AND where it's inserted.
# But better by creating a NEW menu, then move the original inside it, because this method
# keeps the original menu name "&Bookmarks" available for e.g. additions by macros
# "!Main" means "change" Main menu
# But INSIDE a "!" means "add as INLINE submenu" and ":" means as POPUP submenu)
# ":&BOOKM|&Tools" means: place &BOOKM as popupmenu before the Tools menu
%ifplugin bookmarks
&BOOKM{
!&Bookmarks
}
!Main{
-&Bookmarks
:&BOOKM|&Tools
}
%endif
Collecting all own changes at the end just makes it easier to later copy own changes over into a new menus.cfg of another KM-version.
For this purpose it's also a good idea to keep a backup copy of customized default files, named e.g. "menus_myChanges.cfg". This avoids accidentally losing all those change when updating KM by unzipping a new KM-version and dropping the new files into the old folder, to overwrite their old version.
In general default files shouldn't get changed anyway, only the menus.cfg file in the profile folder. They are also safer there, no risk of accidentally getting overwritten. The prob is just an old bug with menus.cfg and accels.cfg, sometimes changes only work in the defaults folder.
Edited 4 time(s). Last edit at 08/21/2019 09:28AM by siria.