Combobox as you type - similar to Slack user tagging @ #134
filipwiniarski
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
First of all I want to appreciate huge effort put to this lib, it's fantastic! Great job 🙌
I want to implement user tags + some other entities mixed in the search - comments, docs, etc - a universal search as you type, starting with
@
tag. I want to ask you what do you think would be the best approach to this one. My initial idea was to use theBubbleMenu
, but it's only triggered while there's a selection. My desired behavior is to show the box after I type@
. This got me thinking it must be something similiar to smartQuotes, where I can leverage the events and show a custom box at@
position.There are other scenarios that I'll need to cover - backspace should hide the search box and leave
@
unformatted. It's tricky to determine where's the end of the search. My idea is to turn the box off whenever there are no results. If someone selects anything from the search box, it should replace the@__
tag with a reference to that item. User should be able to click on it to change the reference, or use the backspace to "move into the block" and trigger the search box back again - just like in Slack.What do you think?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions