Using (and automating) Obsidian on macOS - Meta Post

Collecting posts on useful workflows for macOS. Link posts in this thread and I’ll consolidate.

Keyboard Maestro

Alfred

Working with other apps

Good to Know

42 Likes

A post was split to a new topic: Changing Obsidian’s appearance on the fly with Keyboard Maestro

Maybe this is relevant, since it talks about solutions for macOS specifically.

2 Likes

This is a great great great thread. I’m thinking of buying Keyboard Maestro. Hoping these still work.

1 Like

How to take advantage of autocompletion (and aliases) when wiki-wrap existing text (with Keyboard Maestro)

When I’m wiki-wrapping existing text, it’s easy to select, hit [[ and – boom! – that text is now a link. It’s magic. But sometimes, I’m not sure what the exact text is, or the text is “Luhmann” and I want it to link to a page entitled “Niklas Luhmann”, which has the alias, [Luhmann]. When I’m typing Luhmann, Obsidian’s brilliant autocorrection includes that option – [[Niklas Luhmann|Luhmann]] – but there is no autocorrection offered if you simply wrap the text.

But there is a simple workaround:

  1. Select the text
  2. ⌘X - Cut
  3. [[
  4. ⌘V - Paste

To make it even faster, I’ve created a Keyboard Maestro shortcut ⌘⌥[ that cuts the selected text to a named clipboard, prepends [[ and then pastes the cut text, at which point the autocorrection kicks in and you can see several possibilities. Here is a screenshot of the KM macro.

4 Likes

I’ve proposed this Small but big QoL: When linking a pre-existing word or phrase, display the note suggestion menu as a feature for Obsidian, which is very close to what you’ve built for KM here. Thank you, I’ll be using this until (hopefully) the devs implement the feature request!

2 Likes

This is a great little workaround! I re-created it as an Alfred workflow in MacOS:

Screen Shot 2020-11-29 at 9.41.43 PM

7 Likes

Here is my Alfred workflow file itself for importing:

3 Likes

Is it just me, or is KM unable to move or resize Obsidian?

Working here. Any chance you’re in full screen mode?

No, I’m actually I’m trying to get it to open in fullscreen! :smiley: I’m a KM novice, just testing it out. I have no problems getting the actions to work with other programs.

Maybe someone can help me out. I’d like to start the day with Obsidian and Safari side-by-side, with Safari opened to a particular URL and Obsidian opened to the daily note. Extra points if it opens to a particular workspace. How would you approach this?

Here are the steps, substituting “workspace1” in the next-to-last action for the name of your desired workspace. I have the Obsidian hotkey for Load Workspace set to ⌘1.

1 Like

Thank you! This is great.

Here is my first attempt at Obsidian Mac Automation, hope it is of interest.

Iain

3 Likes
2 Likes

(The thread doesn’t go into the detail suggested by the title — it just calls attention to Obsidian Shortcut Launcher and one class of its possibilities.)

1 Like

I use Espanso.
I have an expansion called e-edit… Which opens
subl to edit the Espanso confog files,
Then another expansion to make a new entry.

Hook needs A LOT more attention.

Want to reference a file to someone? Hook to that file on the server, create a hook file and send it to them over WhatsApp or whatever

1 Like

I wasn’t aware this thread existed … my response in this thread might fit in the Keyboard Maestro list above. It shows a macro where, if I type [ABC-123] (a jira ticket number) it automatically types (https://xxx.atlassian.net/browse/ABC-123) to turn it into a link.