Removing unwanted menu entries from n++ main menu bar
-
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. -
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.
-
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.
-
@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.
-
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.
-
@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.
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)
-
Move *.js files from the “Includes” folder to the “Includes\disabled” folder
Результат.