Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solid-color emoji highlighting #3364

Closed
finnjames opened this issue Mar 5, 2021 · 6 comments
Closed

Solid-color emoji highlighting #3364

finnjames opened this issue Mar 5, 2021 · 6 comments

Comments

@finnjames
Copy link

Is your feature request related to a problem? Please describe.
I want to use Noto Emoji with kitty, but I cannot highlight the characters.

Describe the solution you'd like
To have a way of highlighting solid color emoji.

Describe alternatives you've considered
I have tried using the kitty emoji picker with the 'text' and 'graphic' options, but these characters are not double-width.

Additional context
Here is how the snake emoji looks in kitty:
kitty

Here it is highlighted in the VSCodium terminal:
vscodium

If I'm missing some obvious way to accomplish this please let me know.

@kovidgoyal
Copy link
Owner

dup of #3211

@finnjames
Copy link
Author

By adding U+FE0F (as noted above, and in #3211) I can change the highlight color, but the emoji is single-width. Is there a way to have both double-width display and highlighting?

image

@kovidgoyal
Copy link
Owner

Run from master.

@finnjames
Copy link
Author

Just built from master:
Screen Shot 2021-03-05 at 2 39 14 AM

@kovidgoyal
Copy link
Owner

Ah I think I got your problem. Color emoji are not colored by text attributes. They are rendered in whatever color comes from the font. If you want to color them, then you follow them by \ufe0e and they will be rendered as text, single-celled and colored by the current foreground color.

This is the way they are supposed to be rendered. If vscodium is doing it differently, then that is a bug in that program.

@finnjames
Copy link
Author

Got it. Thanks for the info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants