TriliumNext / Notes

Build your personal knowledge base with TriliumNext Notes
GNU Affero General Public License v3.0
652 stars 31 forks source link

(Feature request) Include "Symbols Nerd Font" icons font #354

Open hasecilu opened 3 weeks ago

hasecilu commented 3 weeks ago

Describe feature

Currently you can use icons from boxicons on the notes, despite having a big collection some tech-related icons are not available.

Nerd Fonts is a collection of "nerd"/tech-related icons, now it has more than 10k icons, it includes lots of programming languages and Linux-related, code editor, decorator icon, etc. It's a very popular font for CLI tool users/developers, used on hundreds of applications.

Characters use Unicode codepoints and each glyph is identified by class and codepoint

Additional Information

I wanted to use "Arch Linux"  logo (class: nf-linux-archlinux, codepoint: \uf303) for a note but only found "Tux" .

eliandoran commented 3 weeks ago

@hasecilu , I'm open to adding support for icon packs, however we need to think of a good way to allow the user to switch between them.

I'm not sure how to treat the case in which we switch to another icon pack, what happens to the icons for the notes that are in box icons, for example? I would not go for supporting multiple icon packs at the same time since that could cause performance issues.

hasecilu commented 3 weeks ago

I was thinking on adding them as complements so there would be no need to replace current icons. Maybe a widget could do the trick so users that not need it are not affected.

eliandoran commented 3 weeks ago

@hasecilu , the problem would not necessarily be whether to replace the existing icons or not, but how to handle the support for multiple icon packs. I wouldn't want Trilium to have to load both Boxicons and Nerdicons (which has a lot of icons, btw) at the same time, especially if the user doesn't use them.