ProKeys
ProKeys copied to clipboard
"Suggest snippets" feature
The problem:
- User has to often remember the exact snippet name to execute snippets.
- Context menu snippet insertion can be quite a burden to sort through the multiple levels of the folders a person might have+having to scan for the exact snippet name in the long list+can't see the snippet body the selected snippet might expand to.
The solution: (drumrolls)
Suggest snippet feature:
It works very simply.
- User is confused about the snippet name.
- He presses a magic hotkey (undecided yet) and a popup comes on the screen.
- The popup has a search box (and we already have the search mechanism implemented).
- User types the things he remembers offmind.
- Suggestions come as he types. He uses up/down arrows to select the suggested snippet and presses enter key to use it.
What we have to do? (log separate issues for each entry in future)
- Deliberate upon and implement the hotkey.
- Implement the UI (ui must only show the snippet body since snip names are abbrevs only and are pointless)
This could work like Github's pop-up that appears when you press colon. Hotkey can be backtick?
(Could implementing this also affect solutions for #117 .1 = "I don't have . . ." ?)
Hotkey can be backtick?
Default hotkey to suggest snippets could be Ctrl+Space? User is allowed to change it.
Could implementing this also affect solutions for #117 .1 = "I don't have . . ." ?
How do you think so? Elaborate.