phibr0 / obsidian-emoji-shortcodes

Emoji Shortcodes - Obsidian Plugin | Adds Support for Emoji Shortcodes to Obsidian
MIT License
178 stars 15 forks source link

Some emojis aren't available #18

Closed puffitos closed 2 years ago

puffitos commented 3 years ago

I've noticed that I can't get some emojis to appear, no matter what emoji code I use.

An example is large green circle. I've used both shortcodes suggested in the above page, but it doesn't render and/or appear on the suggestion droplist.

image

Unfortunately housamz json with the emojis isn't complete and I would like my circles to be super colorful. Is it ok if I just add them to the emojiList.ts and add a pull request? :)

phibr0 commented 3 years ago

Unfortunately housamz json with the emojis isn't complete and I would like my circles to be super colorful. Is it ok if I just add them to the emojiList.ts and add a pull request? :)

If you use uniform and correct short codes yes, I would rather find a complete emoji list though... I didn't have any luck with that

klieret commented 2 years ago

Hmm, we could web scrape emojipedia in the worst case, right? I just tried out https://github.com/bcongdon/python-emojipedia and it seems to retrieve shortcodes as well.

Here's what I tried

>>> from emojipedia import Emojipedia
>>> emojis = Emojipedia.all()
>>> emojis[0].shortcodes
':grinning:\n(Github, Slack)\n\n:grinning_face:\n(Emojipedia)'

so this still would need a bit of scripting to get a nice json file that can be used here, but it shouldn't be too hard

puffitos commented 2 years ago

The new update seems to include much more emojis. The green square I was looking for is definitely there :)