You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Script bound to Ctrl-only keycombo can't be opened for edit by holding Ctrl and clicking it in menu #319
/* If the shortcut for the given script number does not have a control in it,
* (or no shortcut key is assigned), then we can pretend the user clicked the menu option.
* runScript() will then check if Ctrl is held down, if it is, it will edit the script.
* Obviously if this menu item's key DOES have Ctrl in it, (and we're on N++ 5.8 or upwards)
* then we can't tell the difference (as we haven't subclassed N++).
* If that's the case, then ctrl-click won't work. That's just tough, I think.
From plugin perspective Ctrl+Shortcutkey, Mouseclick menuitem with script and Mouseclick menuitem with script+Ctrl all are connected just the call of the script function from N++ and is not easily possible to find out where it is coming from.
As Workaround a shortcut with Ctrl+Shift or Ctrl+Alt could be used instead.
Interesting. I never realized this could be considered a bug as if you use the "Scripts" submenu, t should be there also and you should be able to CTRL+Right Mouse or CTRL+Enter to open in Notepad++. That's what I always have done assuming that the CTRL+<somthing> shortcut in PythonScript only worked on the "Scripts" submenu.
if you use the "Scripts" submenu, t should be there also
Yes, this works. The problem comes in when you have hundreds(?!) of scripts in many subfolders, and finding just one can be a lengthy scrolling/digging-down process, and especially annoying if you can plainly see the script you want to edit in the "first-level" PS menu.
[ I probably need a script that prompts me for a partial name, and then finds and opens (for edit) it for me. :-) ]
should be able to CTRL+Right Mouse or CTRL+Enter to open
CTRL+Enter works, but I'm unsure about how CTRL+Right Mouse does anything?
Activity
chcg commentedon Dec 23, 2023
See
PythonScript/PythonScript/src/PythonScript.cpp
Lines 482 to 487 in 50fd498
From plugin perspective Ctrl+Shortcutkey, Mouseclick menuitem with script and Mouseclick menuitem with script+Ctrl all are connected just the call of the script function from N++ and is not easily possible to find out where it is coming from.
As Workaround a shortcut with Ctrl+Shift or Ctrl+Alt could be used instead.
alankilborn commentedon Dec 23, 2023
OK, makes sense.
Thanks for investigating.
Well, users want keycombos as they want them.
Nobody would want to add an extra modifier in just for this capability.
vinsworldcom commentedon Jan 5, 2024
Interesting. I never realized this could be considered a bug as if you use the "Scripts" submenu,
tshould be there also and you should be able toCTRL+Right MouseorCTRL+Enterto open in Notepad++. That's what I always have done assuming that theCTRL+<somthing>shortcut in PythonScript only worked on the "Scripts" submenu.Cheers.
alankilborn commentedon Jan 5, 2024
Yes, this works. The problem comes in when you have hundreds(?!) of scripts in many subfolders, and finding just one can be a lengthy scrolling/digging-down process, and especially annoying if you can plainly see the script you want to edit in the "first-level" PS menu.
[ I probably need a script that prompts me for a partial name, and then finds and opens (for edit) it for me. :-) ]
CTRL+Enter works, but I'm unsure about how CTRL+Right Mouse does anything?
vinsworldcom commentedon Jan 5, 2024
I obviously meant using the mouse with your RIGHT HAND to click the LEFT mouse button ... he says after holding both hands in front of his face with the thumbs out to see which one spells the letter
L.Cheers.
alankilborn commentedon Jan 5, 2024
Super-confused now. :-)
Think I will just ignore prior references to CTRL+Right Mouse...
alankilborn commentedon Jan 6, 2024
Somewhat maddeningly:
contextMenu.xml)sample code:
usage of defined function: