command-uri-obsidian icon indicating copy to clipboard operation
command-uri-obsidian copied to clipboard

Multi-linguals: Use the Command ID, not the Command Name (as shown in the Command Palette)

Open Moonbase59 opened this issue 4 years ago • 1 comments

Thanks for another useful plugin @deathau—and even more thanks that you didn’t forget us multi-lingual people who switch the Obsidian language often, by allowing us to use the Command ID instead of its name!

I’ve missed that a lot in the Buttons and Obsidian Leaflet plugins: Whenever one switches Obsidian’s language, the command names used aren’t the same anymore and all logic breaks. Not so when using the Command IDs.

Since there is unfortunately no official list of command ids (and plugins can add to the commands anyway), you can use my Obsidian Command and Hotkey List (new version) to show command ids and their currently assigned hotkeys within Obsidian. This requires the Dataview plugin to be installed and operational.

Here’s the link to the code, in the Obsidian Forums: https://forum.obsidian.md/t/dataviewjs-snippet-showcase/17847/37

Moonbase59 avatar Jul 21 '21 07:07 Moonbase59

I just ran into this problem as well...

Cheers

ngirard avatar Jan 23 '22 00:01 ngirard