Community
    • Login

    how to add a sub-submenu to the context menu?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 836 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • StoopidoManS Offline
      StoopidoMan
      last edited by StoopidoMan

      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-menu

      and 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.

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE Offline
        Ekopalypse @StoopidoMan
        last edited by

        @StoopidoMan

        Nope, there is only one level of indirection currently.

        StoopidoManS 1 Reply Last reply Reply Quote 5
        • StoopidoManS Offline
          StoopidoMan @Ekopalypse
          last edited by

          @Ekopalypse

          Thank you very much

          1 Reply Last reply Reply Quote 0

          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors