Reputation: 2391
I want to make "Ctrl+G" to open the find dialogue, just as Ctrl+F" (so both shortcuts open the same "find dialogue").
I know I can modify the existing shortcuts of commands through "macro > modify shortcut", but it allows changing the shortcut only, not the "Name" of the command (shaded).
Upvotes: 5
Views: 11165
Reputation: 10129
Here is how you can add a second keybinding to the find dialog. Notepad++ does not offers this out of the box. We can only assign one keybinding.
We need a way to add a second find dialog. One way I can think of is by the very useful npp_exec plugin. It offers to create small automation-scripts and we can add these scripts to the menu. It also offers a (little hidden) way for assigning shortcuts for these scripts.
So the strategy is:
NPP_SENDMSG WM_COMMAND IDM_SEARCH_FIND
, save it, e.g. as OpenFindDlg, you create such a script by Plugins -> NppExec -> Execute..., enter the script and click Save...CTRL-G
.CTRL-G
for the goto line command somewhere under the Main menu Tab.Upvotes: 4