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
Script bound to Ctrl-only keycombo can't be opened for edit by holding Ctrl and clicking it in menu #319
Comments
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. |
OK, makes sense.
Well, users want keycombos as they want them. |
Interesting. I never realized this could be considered a bug as if you use the "Scripts" submenu, Cheers. |
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? |
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 Cheers. |
Super-confused now. :-) |
Somewhat maddeningly:
sample code:
usage of defined function:
|
Create simple script and give it a simple name (e.g.
t.py
):Run the script from the menu to see it works:
Close the t.py file.
Navigate to the script in the menu again, but this time hold Ctrl down while clicking
t
here:Observe that
t.py
opens (correctly) into a Notepad++ tab. Close this N++ tab.Assign a shortcut that only involves the Ctrl key (e.g. Ctrl + e) to the running of this script, and it will appear like this in the menu:
With that menu showing, point to the
t
script, hold Ctrl down, and click.Expected result:
t.py
opens into a new Notepad++ tab.Actual result: the script runs.
Using Notepad++ 8.6 64-bit with PS 3.0.16.0.
The text was updated successfully, but these errors were encountered: