GaurangTandon / ProKeys

free Chrome/Opera extension; makes you productive in online text-related work
Other
101 stars 31 forks source link

"Suggest snippets" feature #119

Open GaurangTandon opened 7 years ago

GaurangTandon commented 7 years ago

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)
iWrote commented 7 years ago

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

GaurangTandon commented 7 years ago

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.