When typing into the Sendbar, I wanted to show emoji suggestions, the same way that Slack/Github do. You type :, then a description of the emoji. For example :thumbs...
Works very well, in my opinion. It grabs results from the emojiIndex that we are already building for the emoji picker. As you are typing, it will filter those results. You can use the arrow keys to key through them, or click the emoji. It will also work anywhere in the text field (you can insert the : anywhere and it will start to complete, not just the end of the message).
When typing into the
Sendbar
, I wanted to show emoji suggestions, the same way that Slack/Github do. You type:
, then a description of the emoji. For example:thumbs...
Works very well, in my opinion. It grabs results from the
emojiIndex
that we are already building for the emoji picker. As you are typing, it will filter those results. You can use the arrow keys to key through them, or click the emoji. It will also work anywhere in the text field (you can insert the:
anywhere and it will start to complete, not just the end of the message).This closes https://github.com/klinker-apps/messenger-issues/issues/925.
Also, VSCode seems to have auto formatted the
Sendbar
file, through theeslint
plugin, I guess. 🤷♂