hrsh7th / cmp-emoji

nvim-cmp source for emoji
186 stars 15 forks source link

Add new emojis (query only) #4

Open rodhash opened 2 years ago

rodhash commented 2 years ago

Hi

Wondering if there's new emojis being added? Or plans to add new ones?

I'm manually adding some emojis that I personally use/like but was wondering whether we have anything in progress related to that so I don't work on repeated stuff .. I mean, duplicating work.

Also is there any automated way of adding new ones? For instance reading a font file and importing the icons? Or it's manually as I'm doing?

This is not actually an issue but couldn't find much info out there so submitting this issue / query.

Thanks

rodhash commented 2 years ago

having a second thought probably the font thing can't be done, we have to provide a sort of description for each of them, right .. not sure but I don't think the font would provide that

jthvai commented 9 months ago

It should be possible to scrape symbl.cc for the emoji block and programmatically generate descriptions based on that information. Even better if they have a public API. This plugin itself seems to have mechanisms to update the emoji list - it gets them from iamcal/emoji-data! It just seems that the JSON hasn't been updated in a while.


Edit:

The code in update.lua doesn't seem to be hooked in anywhere, so I was mistaken.

Nonetheless, you could add curl -L https://raw.githubusercontent.com/iamcal/emoji-data/master/emoji.json -o lua/cmp_emoji/emoji.json as a build command to update the JSON file.