Emoji whose canonical names contain spaces do not appear when queried directly, or when searched for with their exact names:
$ em -s disguised
π₯Έ disguised face
$ em -s hugging
π€ hugging_face
π« people hugging
$ em -s transgender
π³οΈβπ rainbow_flag
β§οΈ transgender symbol
π³οΈββ§οΈ transgender flag
$ em 'disguised face'
[1]
$ em 'people hugging'
[1]
$ em 'transgender flag'
[1]
$ em -s 'disguised face'
# no output
$ em -s 'people hugging'
# no output
$ em -s 'transgender flag'
# no output
Emoji whose canonical names contain spaces do not appear when queried directly, or when searched for with their exact names:
This seems to be because
em
currently replaces any spaces, periods, or hyphens in the query text with underscores: https://github.com/hugovk/em-keyboard/blob/c1c9afc1f761fc7084d080b690b151a7dc78478b/em/__init__.py#L73-L76yet has emoji in its dictionary whose canonical names contain spaces: https://github.com/hugovk/em-keyboard/blob/c1c9afc1f761fc7084d080b690b151a7dc78478b/em/emoji-en-US.json#L11885-L11891
making them impossible to reference directly.
I believe the most straightforward options here are:
Of the two, I believe the first option is preferable, as the second would be a departure from the existing behavior of the interface.