Replace text with emoji while typing - #549
Merged
Merged
Conversation
Otherwise, it is impossible to type text like xtask::shell::foobar without converting it to emoji. Also add tests.
boxdot
approved these changes
Jul 11, 2026
boxdot
left a comment
Owner
There was a problem hiding this comment.
Thank you.
This is definitely a pragmatic approach to this feature. I added some tests and modified the feature a little bit: now a shortcode is only replaces when it is in the beginning of word (that is, at the beginning of input or has whitespace before it). This allows to type text like xtask::shell::foo without actually converting the middle of it to an emoji.
boxdot
enabled auto-merge (squash)
July 11, 2026 17:37
boxdot
pushed a commit
that referenced
this pull request
Jul 11, 2026
Follow-up to #549 This makes tab work to autocomplete emoji. For example, typing `:la` and pressing tab will input `:laughing`, which you can then turn into an actual emoji by finishing with `:`. For emojis with multiple options, you can toggle through them by pressing tab again.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, you need to send the text containing emoji shortcodes for them to be replaced with actual emojis. This change makes it automatically replace them as you are typing, so
:smile:becomes 😄 right as you type the second:.I looked into showing a pop-up while typing with the different options, but that seems way more complex. Adding tab completion as a follow-up to this might be quite simple though.