This is possibly too obvious to share, but I was quite pleased to get it working:
To make a custom search in Alfred for a given vault, just use obsidian://search?vault=VaultNameHere&query={query}
, where “VaultNameHere” is the name of the vault you want to search. To be able to hit Cmd-Space
and type “o whatever query” and immediately search in Obsidian feels magical.
I’ve also made one to search this forum: https://forum.obsidian.md/search?q={query}
, which I search with the keyword “f.o”.