Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Inline snippet completion using backslash as a separator #294

Open
GaurangTandon opened this issue Jun 26, 2019 · 2 comments
Open

Inline snippet completion using backslash as a separator #294

GaurangTandon opened this issue Jun 26, 2019 · 2 comments

Comments

@GaurangTandon
Copy link
Owner

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
Copy link
Collaborator

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

@GaurangTandon
Copy link
Owner Author

GaurangTandon commented Jun 26, 2019

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants