Navigation

    Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    🔦 menu - how to add separators?

    General Discussion
    4
    7
    665
    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.
    • Сергей Друзь
      Сергей Друзь last edited by

      menu > Run

      At this point, I have added my scripted items and now I have the question of how to add separators❓

      example of separators

      I tried to study the files of the «NotePad++» directory itself without any results❗

      Many thanx 🍻

      1 Reply Last reply Reply Quote 1
      • Alan Kilborn
        Alan Kilborn last edited by

        how to add separators

        Short answer: You cannot do it reasonably.

        But, why not ask about creating submenus here or in the Macro menu? Those would also be useful capabilities, perhaps even more so than separators.

        1 Reply Last reply Reply Quote 1
        • PeterJones
          PeterJones last edited by

          In the right-click context menu (contextMenu.xml), you can use <Item id="0"/> to include a separator. It would be nice if something like <Command id="0" /> or <Command/> would work as a separator.

          As an ugly kludge, <Command name="------------------" Ctrl="no" Alt="no" Shift="no" Key="0">echo</Command> will provide a ------------------ entry in the menu, which kindof separates things.

          But yes, having separators and/or subfolders in the Run menu would be a nice feature request.

          Сергей Друзь 1 Reply Last reply Reply Quote 3
          • Alan Kilborn
            Alan Kilborn last edited by

            @PeterJones said in 🔦 menu - how to add separators?:

            In the right-click context menu

            But as a note to future readers, the OP was not talking about the right-click context menu here.

            As an ugly kludge

            …for the Run menu… +1.

            However, as written by @PeterJones , if one actually clicks on the mock separator line, something like the following will result (at least it did for me):

            c8b4607d-d035-46f3-8ce1-51c68ccd9873-image.png

            A more harmless version would be to replace echo with something like cmd /c echo.. Other such possibilities exist as well, I’m sure.

            1 Reply Last reply Reply Quote 3
            • Сергей Друзь
              Сергей Друзь @PeterJones last edited by Сергей Друзь

              @PeterJones

              Hi, none of the options offered worked.:
              <Item id="0"/>, <Command id="0" />, <Command/>.
              The question was about a “menu” with features (which is on top of the IDE).

              1 Reply Last reply Reply Quote 0
              • Ekopalypse
                Ekopalypse last edited by

                As said by @Alan-Kilborn this isn’t currently possible.
                You might consider asking for a new feature that would allow
                inserting separators in Run menu.

                1 Reply Last reply Reply Quote 1
                • PeterJones
                  PeterJones last edited by PeterJones

                  @Сергей-Друзь said in 🔦 menu - how to add separators?:

                  none of the options offered worked.:
                  <Item id="0"/>, <Command id="0" />, <Command/>.

                  Those were all things I tried, and I had implied that they didn’t work (because I said “it would be nice if … would work”), but with the language barrier (since English probably isn’t your native lanugage), I should have said that more directly. Sorry.

                  And, as I said,

                  As an ugly kludge, <Command name="------------------" Ctrl="no" Alt="no" Shift="no" Key="0">echo</Command> will provide a ------------------ entry in the menu, which kindof separates things.

                  I provided that “kludge” (which is slang for a workaround or a way to get around a limitation) so that it would have a similar functionality in the menu suggested, because I saw that the syntax that “would be nice to work” didn’t work. By calling it a “kludge”, I was admitting it wasn’t a perfect solution, but that it might work well enough for the short-term.

                  And then I said,

                  having separators and/or subfolders in the Run menu would be a nice feature request.

                  where I linked to the FAQ that describes how to make a feature request, which was the hint that if you wanted that behavior, you would have to request that feature, as @Ekopalypse just repeated for you.

                  So, to be very direct this time: the feature you asked about does not exist. If you want that feature, you will have to follow the instructions in the FAQ that both @Ekopalypse and I linked to in order to possibly get that feature implemented. That feature may or may not ever be implemented. While waiting for a decision (and if it never is), you might want to use my “kludge”, as imperfect as it is, to give you something close to what you want.

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  Copyright © 2014 NodeBB Forums | Contributors