mdelobelle / metadatamenu

For data management enthusiasts : type and manage the metadata of your notes.
https://mdelobelle.github.io/metadatamenu
MIT License
520 stars 27 forks source link

How to change/add icon #593

Open AP2020C opened 7 months ago

AP2020C commented 7 months ago

I can't believe no one has asked this before me but since no search has yielded any results I am compelled to ask.

Going into Fileclass settings there is the Button Icon field, with default "package", however it is free text and not a drop down menu or a reference to a file. What are the predefined values for the icon? Can I define my own custom svg or png? Can I change the color or use multi-color icons?

mdelobelle commented 7 months ago

Hello, as we are using the core feature of obsidian setIcon (https://github.com/obsidianmd/obsidian-api/blob/da7309d0f22c073ca6eb0fe95c0eeee055a235a7/obsidian.d.ts#L497), the choice is limited to the subset of lucide icon library that is currently embbed in the current version of Obsidian.

You can find this list with a small trick explained here https://github.com/mdelobelle/metadatamenu/issues/549

AP2020C commented 7 months ago

I don't see the trick. So I can choose the icon from those of https://lucide.dev/icons/ ? I read "subset". So far I have been lucky, where can I find a list with the subset?

In this regard, in addition to the above, I would like to suggest that to add a "search here" icon that opens the Lucide site, and that as I type into the field a combo with typed character compatible icons appear, accompanied by the icon itself