-
Notifications
You must be signed in to change notification settings - Fork 24
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
Maybe also affected by this issue (see description)? #7
Comments
Yes, NppExec is also affected by this. |
Well, an internal array of menu item ids for NppExec's scripts can be introduced, and the menu items listed in NppExec's Advanced Options can internally be associated with the menu item ids. |
@d0vgan Are you talking about to modify the shortcut from within a nppexec script? For user changes via the n++ menu there is NPPN_SHORTCUTREMAPPED, which is already implemented by your plugin as far as I see. Pythonscript could remove menu items calling python scripts in a setting menu and if a shortcut is assigned to that menu item it is also removed automatically. |
NppExec's Advanced Options additionally contains the following two buttons: [Move up] and [Move down]. Initial Position: Position after moving the items: And I have no idea how this can be fixed, because NPPM_REMOVESHORTCUTBYCMDID does not allow to deal with it - because the item is moved (its position is changed) rather than deleted. |
NPPM_REMOVESHORTCUTBYCMDID can't help with that. You would need a new callback to modify the shortcut <-> menu item mapping at n++ shortcut code. |
I was thinking about this issue again and again, and here is my conclusion: the proposed approach with NPPM_REMOVESHORTCUTBYCMDID is a completely wrong direction. |
The Pythonscript plugin had an issue with menu entries created by the plugin itself, see here. This issue was eliminated by introducing a new Npp event, see here. This event is available since Npp v7.5.9.
I guess NppExec could also be affected.
The text was updated successfully, but these errors were encountered: