zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
26.09k stars 1.78k forks source link

(Feature request) Programming languages icons #2805

Open zbahadir opened 2 years ago

zbahadir commented 2 years ago

Describe feature

I love this app and use it as snippet manager. Programming language icons can be added to the icon lists. For example, it could be the icon set on this site. https://devicon.dev/

Additional Information

No response

MartinSGill commented 5 months ago

Until there's native support you can get it working by

  1. Create a new note of type CSS with property #AppCss with content:
@import "https://cdn.jsdelivr.net/gh/devicons/devicon@v2.15.1/devicon.min.css"
  1. in your note, use the icon property: #iconClass="devicon-azure-plain colored"
  2. Bask in the glow of your new icons 😁

edit: You may need to reload your UI :)