Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Autocomplete for available tokens #9

Open
amcdnl opened this issue Jan 7, 2020 · 0 comments
Open

[Feature Request] Autocomplete for available tokens #9

amcdnl opened this issue Jan 7, 2020 · 0 comments

Comments

@amcdnl
Copy link

amcdnl commented Jan 7, 2020

Feature Request

First off, love the project. Been looking for something like this for a while now.

One thing I've been playing with is the ability to add autocomplete for the available tokens the user could insert.

Implementation

I was thinking it might be possible to do something like DraftJS Mention's plugin does: https://www.draft-js-plugins.com/plugin/mention.

Considerations

I'm unsure how one would trigger the suggestions since {{ is a pretty complex situation. One thing that might be better is a + button or a command like CTRL+SPACE to trigger the menu and then it would add the brackets on insertion?.

Microsoft Flows has a button to (this uses draftjs w/ tokens btw) add the token.

2020-01-07_10-38-22

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

No branches or pull requests

1 participant