Community
    • Login

    Removing unwanted menu entries from n++ main menu bar

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 4 Posters 1.3k Views
    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.
    • Gilles-Maisonneuve 0G
      Gilles-Maisonneuve 0
      last edited by

      Good morning people,
      I surely have made a mistake somewhere when installing notepad++ but I have many extra menu entries in my main n++ menu bar:
      “CSS lint”, “Grep”, “Includes”, “JSHint”, “XML”.
      I thount it was from plugins I could have inadvertently installed but after my plugin admin I could not find what I should remove.
      Is there a way to purge the menu from all the unwanted entries ?
      TIA to alll of you.

      1 Reply Last reply Reply Quote 0
      • TroshinDVT
        TroshinDV
        last edited by

        I had a similar problem. These menus adds plugin jN. You can go 3nd ways:

        • Remove the plugin itself
        • Move *.js files from the “Includes” folder to the “Includes\disabled” folder
        • Adjust the menu in the scripts themselves.

        I preferred option 3. Add code to each script that adds the menu (up the script):

        // глобальная переменная с меню скриптами.
        if (!jN.scriptsMenu_jN){
        	var scriptsMenu_jN = Editor.addMenu("jN-Examples");
        	jN.scriptsMenu_jN = scriptsMenu_jN;
        } else { 
        	scriptsMenu_jN = jN.scriptsMenu_jN;
        }
        

        And edit a deadline for adding a menu:

        var CSSLintMenu = scriptsMenu_jN.addMenu(CSSLintMenuCfg);
        

        And so process all scripts.

        1 Reply Last reply Reply Quote 0
        • Gilles-Maisonneuve 0G
          Gilles-Maisonneuve 0
          last edited by

          Thank you for your answer.
          None of the three solutions worked for me. I decided to remove n++ completely including my own conf data then reinstall from scratch. It worked.
          Not very clever method I confess, but it’s a test machine, on the real one, I keep on with n++ 7.4 to keep the things clean until n++8 becomes stable and clean with the plugins.

          Thank for very much for your help.

          TroshinDVT 1 Reply Last reply Reply Quote 0
          • TroshinDVT
            TroshinDV @Gilles-Maisonneuve 0
            last edited by TroshinDV

            @Gilles-Maisonneuve-0 said in Removing unwanted menu entries from n++ main menu bar:

            None of the three solutions worked for me. I decided to remove n++ completely including my own conf data then reinstall from scratch. It worked.

            I solved the problem of the 3rd option.
            Screenshot_167.png

            1 Reply Last reply Reply Quote 0
            • artie-finkelsteinA
              artie-finkelstein
              last edited by

              While I normally use the CustomizeToolbar plugin to tame the toolbar, this sounds more like the jN plugin is slowly taking over the toolbar and it should be tamed first. Disclosure: I don’t use the jN plugin, so please take my observation with large grains of NaCl; but I do recommend CustomizeToolbar for removing unwanted toolbar buttons.

              PeterJonesP 1 Reply Last reply Reply Quote 0
              • PeterJonesP
                PeterJones @artie-finkelstein
                last edited by

                @artie-finkelstein said in Removing unwanted menu entries from n++ main menu bar:

                to tame the toolbar,

                The OP’s complaint was about the CSS Lint, Grep, Includes, JSHint, and XML menus being added to the main menu bar, not additional icons on the toolbar.
                e184a226-d3c2-4715-afff-c131cc4b0f27-image.png

                If you search the jn-npp source code for the “addMenu” method here, you will see that all of those menus are created using the Editor.addMenu(...) command. Really, the jn-npp author should have made all of those menus sub-menus of the Plugins > jN Notepad++ Plugin sub-menu.

                Troshin’s untranslatable screenshot appears to be showing that he somehow consolidated some of those into submenu’s of a top-level menu that he called “Скрипты jN” (“Scripts jN”) – I don’t know whether through re-compiling the plugin with code changes, or through some other plugin that edits other plugins’ menus – but even that goes against the design philosophy of Notepad++ plugins, which is to put all their menus underneath their entry in the Plugins hierarchy. And it didn’t take care of the others (the “jN Examples” menu and the “Zen Coding” menu)

                1 Reply Last reply Reply Quote 1
                • TroshinDVT
                  TroshinDV
                  last edited by

                  Move *.js files from the “Includes” folder to the “Includes\disabled” folder

                  Screenshot_169.png

                  Результат.
                  Screenshot_170.png

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors