Configure Menu Plugin JSON Questions
Posted: 28.02.2025 19:09
I am experimenting with the 'Confiugure Menu' plugin and have a few questions.
(1) I wish to add a new 'File' menu item for the action 'file: open file, in text viewer' from the 'Help / Command palette...' dialog. How would I define this item in JSON? I need a cmd_... keyword that isn't obvious.
(2) Other menus do not use JSON blocks, but configure automatically: 'Macros' and 'Tools' and then 'Plugins' in a slightly different (but still automatic) manner. Can I add my own items to such menus, and if so, how?
(3) What is the JSON syntax for a grayed-out menu divider with text? From the default 'View' menu, I thought "cmd":"0" was the way, but that method does not work for me. Does the number of hyphen characters surrounding the text matter?
Thanks!
(1) I wish to add a new 'File' menu item for the action 'file: open file, in text viewer' from the 'Help / Command palette...' dialog. How would I define this item in JSON? I need a cmd_... keyword that isn't obvious.
(2) Other menus do not use JSON blocks, but configure automatically: 'Macros' and 'Tools' and then 'Plugins' in a slightly different (but still automatic) manner. Can I add my own items to such menus, and if so, how?
(3) What is the JSON syntax for a grayed-out menu divider with text? From the default 'View' menu, I thought "cmd":"0" was the way, but that method does not work for me. Does the number of hyphen characters surrounding the text matter?
Thanks!