ffes / nppsnippets

Code Snippets plugin for Notepad++
https://www.fesevur.com/nppsnippets
GNU General Public License v2.0
71 stars 12 forks source link

Shortcut keys to navigate the snippets panel #31

Closed ffes closed 4 years ago

ffes commented 4 years ago

As suggested by @gwarah in #30

He suggest a shortcut key to focus the list of snippets and a shortcut key to focus the combo to select the library.

To make that possible the Snippets-menu in the Plugin menu needs to get to actions to focus those items. Then it is up to the user to add their own favorite shortcut key with the shortcut keys dialog of N++

gwarah commented 4 years ago

There are two important use cases to analyze this issue:

  1. User wants to get a stored snippet: in my opinion is exactly as you've described:

He suggest a shortcut key to focus the list of snippets and a shortcut key to focus the combo to select the library.

  1. User wants to save a selected code as a snippet: in such cases I suggest (if possible) a new shortcut that performs 2 actions: change the focus to snippet frame and then open the context menu, or in the npp menu context, insert a option to this functionallity. Maybe this case also will require one more issue.