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

How to set default emoji skin? #11

Open
azzamsa opened this issue Feb 5, 2024 · 2 comments
Open

How to set default emoji skin? #11

azzamsa opened this issue Feb 5, 2024 · 2 comments

Comments

@azzamsa
Copy link

azzamsa commented Feb 5, 2024

Hi, 👋

When I type :wave:, Is there a way to get the default emoji skin?

image

  • Default emoji skin in Emote

image

Thank you for nvim-cmp! 🍨

@jthvai
Copy link

jthvai commented Feb 15, 2024

I believe this plugin just displays whatever is included in your terminal font for that unicode codepoint. Though, looking at the bytes that make up the emoji action and then the emoji colour1, it should be possible to add a setting that changes the default colour across all emojis with variants by simply appending a byte.

It would probably require significant refactoring to add the additional logic (as this plugin is currently effectively just a lookup table).

Footnotes

  1. The first byte determines the emoji, and the second byte determine the colour; this appears to be consistent across the board: waving hand standard, waving hand medium light, pointing up medium light

@azzamsa
Copy link
Author

azzamsa commented Feb 21, 2024

by simply appending a byte

Yes, it is just a matter of appending a byte

    println!("{}", format!("👶 {} age", person.name).magenta().bold());
    println!("{}", format!("👶🏼 {} age", person.name).magenta().bold());

image

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

No branches or pull requests

2 participants