Question: how does Obsidian know the file path of a wikilink? #58
Replies: 1 comment 1 reply
-
Obsidian stores all this data in the Markdown notes themselves. It may keep metadata around that as a cache for performance reasons, but all of those relations can be rebuilt from notes if the cache is deleted. Given that Obsidian is closed-source we can't really look at how it does this without reverse-engineering, but the lookup algorithm is pretty straightforward. Here's what Lines 722 to 739 in 86af6bb Basically, it indexes all the filenames in your vault, then finds the longest-matching Obsidian itself ensures WikiLinks are unique and will prefix the directory a note is in when you have two similarly-named notes in different folders. |
Beta Was this translation helpful? Give feedback.
-
This isn't an Issue, but I'd like to understand how Obsidian.md keeps track of wikilink file paths, and how
obsidian-export
deals with that.obsidian-export
make use of this system information? Or does it traverse all the files in the vault and make a map of the file paths?Beta Was this translation helpful? Give feedback.
All reactions