I would like to create links that, when clicked, execute an Obsidian command (eg open today’s note, save to PDF, display the recent files list, etc.) I want this to be a single click on a link rather than having to type CTRL+P, find the command I want, then ENTER.
Somehow I thought Obsidian URIs would let me do this, ie
but that doesn’t seem to be supported. Is there any way to do this currently?
There is a plugin called “Buttons” that allows you to do exactly this:
It took me some experimentation and time with the docs to get it working.
To create a button that jumps to today’s page, I first defined a special block in a page that describes what the button should do:
name Go to Today
action Daily notes: Open today's daily note
Then elsewhere in my vault, I can place a link that when clicked, will execute the “Open today’s daily note” action:
To make the button look like a link, I included the following custom CSS:
Hope this helps!
Ah, I’ve used the Buttons plugin, but the CSS you gave is exactly what I need. Thank you.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.