contour
contour copied to clipboard
Allow entering emoji sequences to stdin by their name
Usually systems allow things like :smiley:, and since we support IBUS already to enter arbitrary Unicode codepoints, or Compose key to enter other special keys like ë through Compose " e, it would make sense
to easily allow entering Emoji sequences by their defined name.
We would need a leader key (like a bindable action) and then use the existing vtbackend API to enter custom text. Hitting Return will then commit the corresponding emoji.
Additionally (second step?) we could provide completion list, the Emoji name and their resulting Emoji.
It can be done relatively easy with c++23 https://godbolt.org/z/54bGMr3dG, unfortunately msvc does not support it yet.
Also, i think that good option will be to add some VT sequence so you can do something like
printf "\033[... CYRILLIC CAPITAL LETTER YERU WITH DIAERESIS \a"