Support displaying shortcodes instead of Emojis in messages #317

Closed
opened 2025-10-14 15:45:52 -06:00 by navan · 0 comments
Owner

Originally created by @bbliem on 3/22/2024

The font in my terminal doesn't support most emoji characters and shows ugly placeholders instead. For reactions, there is the setting reaction_shortcode_display that allows me to see human-readable shortcodes instead of the emojis. However, for emojis in messages there is no such feature.

I added a new setting message_shortcode_display that controls whether shortcodes are displayed instead of emojis in messages.

Replacing emojis with shortcodes happens in TextPrinter (or, for plain text, in Message::show_msg()).

I hope the changes are alright. I'd be happy to improve the code further and I'd be grateful for some feedback as I'm not very experienced in Rust yet.

*Originally created by @bbliem on 3/22/2024* The font in my terminal doesn't support most emoji characters and shows ugly placeholders instead. For reactions, there is the setting `reaction_shortcode_display` that allows me to see human-readable shortcodes instead of the emojis. However, for emojis in messages there is no such feature. I added a new setting `message_shortcode_display` that controls whether shortcodes are displayed instead of emojis in messages. Replacing emojis with shortcodes happens in `TextPrinter` (or, for plain text, in `Message::show_msg()`). I hope the changes are alright. I'd be happy to improve the code further and I'd be grateful for some feedback as I'm not very experienced in Rust yet.
navan closed this issue 2025-10-14 15:45:53 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/iamb#317
No description provided.