What I’m trying to do
I’d like to use Alfred to search for and open Obsidian notes.
Note
This use case involves using an Alfred workflow to search and launch Obsidian notes. The workflow is ‘Shimmering-Obsidian’. (I’ll call this SO as shorthand from here on.) It depends on two Obsidian plugins – Advanced URI and Metadata Extractor. Both are installed and enabled on the vault.
The issue
It partially-works, but not in any useful sense. If I create notes, close Obsidian and re-open it, they become discoverable. I can search for them in Alfred and open them. Hooray. However, if I create notes and leave Obsidian open, I cannot. Either I have to
- close and re-open Obsidian or
- run a command in the workflow called ‘osetup’ which closes and re-opens Obsidian. (This has the same effect.)
This is the only way that Obsidian notes become discoverable.
Thoughts
My initial thoughts were that this may be related to indexing or caching.
Things I’ve tried which didn’t work
I tried rebuilding the metadata cache for the vault.
I tried switching vaults.
I deleted macOS Spotlight index.
I refreshed the Alfred index/cache.
I explored known issues for the Obsidian dependencies – Advanced URI and Metadata Extractor.
I’ve tried various alternative Alfred workflows.
I searched the forum for terms, phrases and keywords relating to ‘Obsidian Alfred search’, ‘Alfred find notes’, but nothing seemed relevant.