Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: put all menus under one main menu entry in the menu bar #11

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

I kind of didn't like the way the menus are arranged on jN since each script 
creates a menu item on the menu bar. I initially worked around this by 
disabling all scripts I didn't use, but I now think that it would be better to 
put all menus under on menu item.

This is easy by creating a menu item called jN-Scripts or something and the 
referencing the object in all scripts.


Original issue reported on code.google.com by [email protected] on 6 Apr 2014 at 5:44

@GoogleCodeExporter
Copy link
Author

I understand what you mean. I am opposite of you. I don't like that all plugins 
are collected together under "Plugins" menu item. It was a restriction of N++ I 
broke.

I think there are many people who would say Alex is right, but I think there 
are many people who would say Eugen is right also. 

If I look to other software products like Word/Excel/PhotoShop/VisualStudio. 
All of them offer own menus for actions which belong together.

What we can do to realize your suggestion? We can define new addMenu function 
in start.js

var jnScriptsMenu = Editor.addMenu("jN-Scripts");
var addMenu = function(cfgOrText){
    return jnScriptsMenu.addMenu(cfgOrText);
}

This redefinition can be made depending on a setting.

In all scripts Editor.addMenu should be replaced by simple addMenu.

Editor.addMenu can be used further to add menus to main menu and addMenu to add 
menus to jnScriptsMenu. 

What do you think about it?

Original comment by [email protected] on 6 Apr 2014 at 8:45

@GoogleCodeExporter
Copy link
Author

Thats more or less how I implemented the menu as well.
Whether the menus are put into the menu bar or into one menu item could be made 
configurable in settings for the plugin.


Original comment by [email protected] on 6 Apr 2014 at 9:00

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

incidentally, I discovered the plugin via this post in stackoverflow 
http://stackoverflow.com/questions/17430523/can-we-decode-url-with-nodepad, and 
there somebody complained in the comments about the menu items, that got me 
thinking.

Original comment by [email protected] on 6 Apr 2014 at 9:02

@danielo515
Copy link

Hello,

I have to say that I agree with this request. Any chance of get it ? I tried using the same name for all the menu names, but then I only get the same menu name over and over again.

Thank you for the plugin by the way.

@pidgeon777
Copy link

pidgeon777 commented Jul 19, 2019

It would be nice to add an option so that one could decide whether or not to place everything into a single menu entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants