phibr0 / obsidian-commander

Commander - Obsidian Plugin | Add Commands to every part of Obsidian's user interface
MIT License
623 stars 32 forks source link

Allow use of all Lucide icons or emojis for icons #119

Open realfr opened 7 months ago

realfr commented 7 months ago

Describe the feature

Does this fix a problem? If so, specify.

The only way to find an appropriate icon is to keep typing words that might potentially match an icon available from the plugin. This can take ages. The icons are only searchable via their names on Lucide.

Did you consider other alternatives?

An alternative way of finding an icon would be to go to Lucide. What's very frustrating with this workflow is that once I've found an icon, it is often not available on the plugin.

Screenshots and recordings

No response

purierca commented 3 months ago

HUGE request on my side, to me that's the only thing that's missing

jcesguerram commented 2 months ago

Agreed! More icons would be great. If you could add for example 'H1', 'H2' etc icons for header commands that would be awesome

erazlogo commented 1 month ago

+1 on this request. I have my own script to create a new kanban board, and I'd love to assign the icon Obsidian Kanban uses for the Ribbon to my script, but it is not available in Commander :( Thank you!

brunoprela commented 1 month ago

Another +1 on this request. More emojis make this app so much more powerful when you use is for many ribbon items for example.

O-RONI commented 2 weeks ago

+1 on this request!

In the meantime, I managed to use some of the other Lucide icons by manually putting them in the data.json file in the plugin directory. But this would be 100% better...

jcesguerram commented 2 weeks ago

+1 on this request!

In the meantime, I managed to use some of the other Lucide icons by manually putting them in the data.json file in the plugin directory. But this would be 100% better...

how did you do that?

O-RONI commented 2 weeks ago

how did you do that?

1. Go to <YOUR VAULT>/.obsidian/plugins/cmdr/data.json.

2. Search for the command you want to change the icon for

for example, this one:

image

3. Change the icon value for one of the Lucide icons name

You can look for them here: https://lucide.dev/icons/

image

image

4. Restart Obsidian or the commander plugin for the change to take effect

image

jcesguerram commented 2 weeks ago

how did you do that?

1. Go to <YOUR VAULT>/.obsidian/plugins/cmdr/data.json.

2. Search for the command you want to change the icon for

for example, this one:

image

3. Change the icon value for one of the Lucide icons name

You can look for them here: https://lucide.dev/icons/

image

image

4. Restart Obsidian or the commander plugin for the change to take effect

image

oh wow, thanks!

erazlogo commented 2 weeks ago

Thank you @O-RONI! Worked like a charm.

jcesguerram commented 2 weeks ago

Thank you @O-RONI! Worked like a charm.

@O-RONI same here! worked great! i really wanted to do that!

jsmorabito commented 2 weeks ago

Hi all, my understanding is that this is done on Obsidian's side. I noticed a request on the forum here if you'd like to upvote it: https://forum.obsidian.md/t/upgrade-lucide-icons-and-improve-timeliness-of-future-upgrades/73152

I'd asked about this previously on Discord here (not sure if that link will work): https://discord.com/channels/686053708261228577/840286264964022302/1217155092256526528

But basically they said they'll update it at some point ¯_(ツ)_/¯

Thank you @O-RONI for providing a quick fix!