how to add a sub-submenu to the context menu?
-
I am not an advance user or a coder.
I want to edit the ContextMenu.xml, but I want to keep thing organized in sub menus
So the first level would be “MyCustomMenu” then inside it I would have a submenu named “My Python Scripts”, and then inside My python scrip I would have a list of all my pythons scripts.
Then Again in “MyCustomMenu” I would have another submenu for different plugins or shortcuts.
I already checked this post:
https://community.notepad-plus-plus.org/topic/17820/editing-the-file-context-menu-xml-how-to-add-a-submenu-to-the-context-menuand I was able to have a single level menu
<Item id="0"/> <Item FolderName="My custom Menu" PluginEntryName = "Python Script" PluginCommandItemName = "scrip1" ItemNameAs = "Script1" /> <Item FolderName="My custom Menu" PluginEntryName = "Python Script" PluginCommandItemName = "scrip2" ItemNameAs = "Script2" /> <Item id="0"/>I tried to ask ChatGPT and got this
<!-- Other context menu items --> <Item FolderName="My" PluginEntryName="Python Script" PluginCommandItemName="MyMainScript"> <SubMenu name="MySubmenu" id="1"> <Item FolderName="MySubmenu" PluginEntryName="Python Script" PluginCommandItemName="MySubScript1" /> <Item FolderName="MySubmenu" PluginEntryName="Python Script" PluginCommandItemName="MySubScript2" /> <!-- More sub-submenu items here --> </SubMenu> </Item> <!-- Other context menu items -->But it didn’t work.
I have no idea what XML is, and searched everywhere .
I just need a template to follow.
-
Nope, there is only one level of indirection currently.
-
Thank you very much
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login