sourcegit icon indicating copy to clipboard operation
sourcegit copied to clipboard

[Feature request] `:emoji:` codes support

Open KaKi87 opened this issue 10 months ago • 8 comments

Hi,

I use Gitmoji with :emoji: codes for commit messages.

It would be nice for SourceGit to convert those into visual emojis.

Thanks

KaKi87 avatar Feb 13 '25 03:02 KaKi87

gemoji definitions can be found in https://github.com/github/gemoji/blob/master/db/emoji.json

gadfly3173 avatar Feb 13 '25 03:02 gadfly3173

My concern is that not all fonts support these emojis

love-linger avatar Feb 13 '25 03:02 love-linger

Emojis are part of the unicode standard though.

But, I guess converting emojis could be optional in settings, disabled by default if you want

KaKi87 avatar Feb 13 '25 04:02 KaKi87

I'm trying to copy the :arrow_down: ⬇️ to the start of subject

https://github.com/user-attachments/assets/b7d5b7b6-e778-43f8-8074-3c5fe3d46839

You can see all the emojis changed its typeface to another one.

love-linger avatar Feb 13 '25 09:02 love-linger

I'm trying to copy the :arrow_down: ⬇️ to the start of subject

I suggest rendering gemoji only in read-only places, there is no need to deal with it during editing. GitHub and GitKraken are also handled in this way.

gadfly3173 avatar Feb 13 '25 09:02 gadfly3173

I want to show through the video above that not all fonts support to display emojis. At the same time, the video above also shows that even if the program can find the appropriate emoji from the fallback fonts, there may be typographic problems.

love-linger avatar Feb 13 '25 09:02 love-linger

Then, again, just make it optional and disabled by default, so that it's the user's responsibility to use a compatible font when enabling this feature.

KaKi87 avatar Feb 13 '25 12:02 KaKi87

One other option is to display the emoji as an SVG or other vector image rather than a character.

KaKi87 avatar Feb 21 '25 16:02 KaKi87