Using (and automating) Obsidian on macOS - Meta Post

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