silverbulletmd / silverbullet

The knowledge tinkerer's notebook
https://silverbullet.md
MIT License
2.34k stars 169 forks source link

Emojis/Icons for programming languages #125

Open christ-offer opened 1 year ago

christ-offer commented 1 year ago

Recently started using this for making personal knowledge bases, and although not a big thing, it would be nice to have emoji/icons/stickers for different programming languages. Any possibility of this? :)

bbroeksema commented 1 year ago

It's most likely "as complex" as making some changes to this file: https://github.com/silverbulletmd/silverbullet/blob/main/plugs/emoji/emoji.json -> adding the emoji and setting a suitable tag to it.

zefhemel commented 1 year ago

I don't fully understand, have emojis for programming language? Like a :java: emoji? If you can map an emoji to an existing emoji (part of the emoji standard), like :python: to 🐍 or something, @bbroeksema 's suggestion would work. Custom emojis (as in: custom images) would be a different story. Also doable, but a different implementation approach required.

christ-offer commented 1 year ago

Yeah I meant more like being able to use custom images probably. For example do :typescript and get something like this: https://slackmojis.com/emojis/1383-typescript

zefhemel commented 1 year ago

So basically this would amount to custom emoji right? That may be nice to have.