Hook://file/ URL scheme with Obsidian, not opening the pages

I set Obsidian as the default app for .md files, but when invoking an Obsidian page in Hookmark, it brings up Obsidian, but it doesn’t open the page.

Is there a way to get it to do that..?
If not, do any Obsidian users use this scheme?

Obsidian cannot open a single md file outside the vault. If you want to open a md file with Obsidian, you need to drag it into your vault folder. So you cannot set the Obsidian as the default app for .md file in some extent.

You can use other plain text editor like CotEditor to invoke the .md file with Hookmark.

The pages are inside my vault. I’m talking about the files that are already in Obsidian.

Thanks for your clarification.

Hook://file/ cannot open the file directly in the Obsidian according to the documentation Using Hookmark with Obsidian – Hookmark. So I think you should try the Obsidian plugin Advanced URI. You can search the name on plugins market.

Welcome to Hookmark forum, @dnfoewu .

Thank you very much for your help! We really appreciate it.

Yes, you are right. Disadvantage of hook://file/ scheme in Obsidian: hook://file/ links cannot be opened directly in Obsidian. They will open in the default app or be revealed in the Finder. Even if I set Obsidian as the default app for .md files, opening such a file will launch Obsidian but not open the specific file.

1 Like

The advance URI scheme isn’t necessarily future proof either, because some notes are imported into the vault automatically, e.g. notes and highlights from things like Apple Books or Raindrop.io.
If these overwrite the already present notes, the ID will get lost.

It very much seems like the not-opening of the notes is a shortcoming of Obsidian, and one which has been lamented by users for the last 5 years.

Is there a way for Hookmark to fake this feature through a script?
The most prosaic way would be to sneak in something like “CMD+O” followed by the file name and then Enter, but there must be a more elegant way.