emoji
The community/tags/emoji
directory contains files for inserting emoji, emoticons, and kaomoji using Talon. It defines a tag, lists, and Talon commands for this purpose.
The emoji.py
file defines the user.emoji
tag, as well as the user.emoticon
, user.emoji
, and user.kaomoji
lists, but does not populate them with data.
The emoji.talon
file contains the Talon commands for inserting the different kinds of emoji. It uses the user.emoji
tag and the three lists defined in emoji.py
. For example, saying "emoticon happy" will insert :)
because the happy
key in the user.emoticon
list is mapped to that value. Saying "emoji angry" will insert ðŸ˜
. The user.paste()
action is used for emoji and kaomoji since they are unicode and can't easily be typed.
The emoticon.talon-list
, kaomoji.talon-list
, and emoji.talon-list
files define the contents of the three lists, respectively. Each of these files defines a user
list with keys mapped to values, for example the happy
key in emoticon.talon-list
is mapped to the value :)
.