Update links from other vaults automatically

I want to link some notes from other vaults in my main vault.

Note that this isn’t a discussion about how to organize the files and vaults. I have my reasons to have to organize files in different vaults, and many other people may have them as well.

How it currently works

It does be currently possible to link notes from other vault with this syntax [display text](obsidian://open?vault=the-vault-name&file=path/to/the/file).

Problem

Those links aren’t dynamic like the links inside the vault. By that, I mean that the links aren’t renamed/relocated when the file name changes or is relocated.

So, if someone has several links from one vault to another and wants to change the file structure of that vault, or want to change the file names for whatever reason, then all the links will become broken.

Solution

Core feature

Every time a file is moved or renamed, then the algorithm looks for all the other Obsidian vaults that are linked to Obsidian[1] and change the link accordingly, the same way they are done when from links within a vault.

Additional features
  • File preview from other vault
  • Shortcut when linking a file for auto-complete the link (similar to the one when typing[[) that searches globally others vault files as well.
  • Select the vaults that will be watched, for better performance, or to limit the scope of the previous item[2]

  1. This could be accessed even by third-party plugins, because I know this data is stored somewhere since they are shown when opening the app or when clicking on “Manage vaults…”. ↩︎

  2. Shortcut when linking a file for auto-complete the link ↩︎

1 Like