How to create a tag "🎥"?

I would like to learn how to create a tag with name="🎥".

If I try to to add such a tag via interface it is removed immediately.

If I create and assign the tag via rails console, it will be shown and can be selected by clicking but it will not be included in any tag search or selector.

2 Likes

Maybe have a look at this topic?

4 Likes

Hm. I still don’t understand the problem after having read the topic.

If I choose “:movie_camera:movie” then I’m able to search and assign the tag via UI.

So it seems that emojis are stripped in searches and a pure emoji string therefore is not a valid search term?

My conjecture is that the translation of emojis into their Markdown equivalent is also a contributing factor.

Are there any downsides to use emojis in tag names, which would favor emoji-free tag names decorated with Tag Icons in the UI?

1 Like

What you’re trying to do will currently taking some hacking - there is no straightforward way to do it.

I think there is a legit feature request in here - to allow tags to be configured with an emoji and also to allow determining whether both tag text and tag emoji are displayed, or just tag emoji.

There is a theme component for allowing tags to get icons, but there is no way currently to suppress the tag text. Maybe this could be added to the component as an an option?

4 Likes

You may try doing it manually, not sure if it works but yeah try giving it a shot:
tag = Tag.find_by(name: ‘movie_camera’)
tag.update!(name: “:movie_camera:”)

Tried that (see above). It is not possible to assign such a tag via the interface.

As a user in our forum noted, searching for emoji in UI is quite difficult, so I like @tobiaseigen’s advice on hiding the tag name in the UI (perhaps limited to special places) while using it in the backend.

I would appreciate any pointers to the philosophy and machinery behind emoji to :emoji-name: translation. I do understand, that having pure ASCII markdown might have some benefits, but I would like to have the option to disable these conversions, keeping only the Unicode text.