ProKeys icon indicating copy to clipboard operation
ProKeys copied to clipboard

"Suggest snippets" feature

Open GaurangTandon opened this issue 8 years ago • 2 comments

The problem:

  1. User has to often remember the exact snippet name to execute snippets.
  2. 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.

  1. User is confused about the snippet name.
  2. He presses a magic hotkey (undecided yet) and a popup comes on the screen.
  3. The popup has a search box (and we already have the search mechanism implemented).
  4. User types the things he remembers offmind.
  5. 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)

  1. Deliberate upon and implement the hotkey.
  2. Implement the UI (ui must only show the snippet body since snip names are abbrevs only and are pointless)

GaurangTandon avatar Feb 15 '17 05:02 GaurangTandon

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 . . ." ?)

iWrote avatar Mar 22 '17 13:03 iWrote

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.

GaurangTandon avatar Mar 22 '17 13:03 GaurangTandon