Local Links
unlistedby Lucas Aguilar
Links to files outside the vault (~/path, /absolute/path, file:///) open the file, in the browser of your choice for HTML, instead of creating an empty note.
Local Links
Link to any file on your computer. Click it, and it opens.
 in an Obsidian note opens file:///home/me/notes/study.html in the browser](https://raw.githubusercontent.com/olucasaguilar/obsidian-local-links/HEAD/docs/demo-light.png)
Out of the box, Obsidian reads [Study](~/notes/study.html) as a note in your vault. Clicking it creates an empty study.html note, inside a new ~ folder.
With Local Links, the file opens:
- HTML in the browser you choose,
#anchorsincluded - PDFs, folders and everything else in their default app
~/path,/absolute/pathandfile:///links- a missing file shows a notice, and no note is created
Desktop only. Tested on Linux.
Install
Add oLucasAguilar/obsidian-local-links to BRAT, or copy main.js and manifest.json into <vault>/.obsidian/plugins/local-links/. Then turn on Local Links in Settings → Community plugins.
Settings
- Browser command:
brave-browserby default. Arguments are fine (brave-browser --incognito). Leave it empty to use the system default. - Browser extensions:
html, htmby default.
A path with spaces needs angle brackets, as in any Markdown link: [a](<~/my notes/a.html>).
More
- Limits: what the tests do not cover, and edge cases
- Alternatives: the plugins that come close, and why this one exists
- Tests:
node test/test.js, anddev/e2e.sh, which clicks real links in a throwaway Obsidian
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.