This is a trivial macro to build, but just in case someone else hasn’t considered it, I thought I’d share it here.
If you’re on macOS, Keyboard Maestro is an incredibly powerful automation tool. This little macro simply uses the keyboard shortcut assigned to Today’s Note to open it in Obsidian, and will work even if you’re currently working anywhere else on the OS.
Using Keyboard Maestro’s URL triggers, it’s pretty easy to activate the macro via e.g., Alfred or a Stream Deck button. You could also trigger it via KM’s other options, of course.
If you use Alfred, you can also do this without Keyboard Maestro. Create a workflow that upon triggering launches Obsidian, delays for a brief moment (I used .2s), and then dispatches the appropriate Open Today’s Note keypress.
It will be beautiful if you edit the post and share directly the extension
For some reason the Obsidian will open, but daily note will not.
I ensured that shortcut for new note inside Obsidian is same like in Keyboard maestro (CMD+T) and manually pressing it it will open today’s note.
When obsidian is already open the daily note will open… is there any smart wait command between opening app to wait for app to open, and then press the key?
There is a Wait action in Keyboard Maestro. It isn’t smart, but sometimes I’ve had luck getting macros to run by inserting “Wait .3 seconds” or similar.
If Obsidian is Open
Launch Obsidian
Wait .3 s
Enter keystrokes for open today’s note
Else
Launch Obsidian
Wait 3 s
Enter keystrokes for open today’s note
Correct! I was thinking to do that. Wait 3 seconds for nothing is luxury It is pretty easy to implement in Keyboard meastro, Im just checking it. Thank you for your help!
Have you tried the “Pause Until” action? This allows you to pause until a specific condition is met. One of which could be “Obsidian is running && at the front”.
I installed & enabled the plugin. So, when I replace <your-vault> with Obsidian (which is the name of my vault) Keyboard Maestro says it doesn’t exist. Am I supposed to put the full folder path in there, since my daily notes are in a sub-folder; what would be the syntax for that? Because I tried Obsidian/Vault/Personal/Journal/ & it didn’t recognize that either.