GaurangTandon / ProKeys

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

Inline snippet completion using backslash as a separator #294

Open GaurangTandon opened 5 years ago

GaurangTandon commented 5 years ago

Similar to how gmail snippets does it: https://chrome.google.com/webstore/detail/gmail-snippets/aaogcnhlejoiamoopmnieonhbgajndlc

Seems like a cool idea. We could also support fuzzy matching. Only problem is deciding upon a UI which could fit on all websites.

What could be the UI?

jaidevshriram commented 5 years ago

UI for what part exactly? The list view for the gmail snippets?

GaurangTandon commented 5 years ago

I mean how exactly should we display the autocomplete popup? For the Gmail Snippets extension, this is not at all hard because they know their product works only in one website, and that's Gmail.

Our product works everywhere so we have to consider all possible website scenarios. The textbox can be anywhere: in the middle of the page, on bottom right, etc. We need a popup that's consistent across all textboxes.

Now, while a separate popup that appears in the center of the page, when you press backslash, is a decent idea, the problem with it is that it is "too much away" from the textarea. A core philosophy of ProKeys so far has been that placeholders, mathomania, everything occurs "right at your caret", in the textarea directly.

Of course, now that when we'll be supporting better forms instead of placeholders, we'll be switching to a popup anyway, so I think that's the way to go here too. Thoughts?