contour icon indicating copy to clipboard operation
contour copied to clipboard

Allow entering emoji sequences to stdin by their name

Open christianparpart opened this issue 2 years ago • 1 comments
trafficstars

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.

christianparpart avatar Oct 13 '23 18:10 christianparpart

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"

Yaraslaut avatar May 07 '24 08:05 Yaraslaut