61 - garden-astro

Livestream

Obsidian has support for URI scheme obsidian:// but it needs absolute path to the file and I’ve tested that it does not work with symbolic links.

But luckily there is a plugin called Advanced URI that support using relative vault path so I can use obsidian://advanced-uri?filepath=1-Projects/100DaysOfCode-R3/61 - garden-astro to open this file in my Obsidian app.

I already implemented filepath in 53 - garden-astro - Add link resolver. I will build the link at the page’s footer. The code is very simple once you already have the relative file path.

<a
    href={`obsidian://advanced-uri?filepath=${encodeURIComponent(
      filepath
    )}`}
>
    Edit in Obsidian
</a>

I plan to hide this link later since it won’t work with other people, maybe I’ll add authentication.