Obsidian:// URL opening will not open vault if already open with one vault

Steps to reproduce

Use obsidian URLs to launch vault from command line:

$ open obsidian://path/to/Vault

When this vault is open, run again to open another window with a vault:

$ open obsidian://path/to/another/Vault

Expected result

Second vault is openeed in a new window.

Actual result

The first vault gets focus.


  • Operating system:
    MacOSX 10.15.7
  • Obsidian version:

This is the first time that I hear this. I was aware of teh opposite problem!?!

@ksandvik I think that syntax is wrong, try

open "obsidian://open?vault=Obsidian%20Help"

When I tested, I was able to open multiple vaults this way…

@luckman212 is correct. You should use the /// with that notation.

Hmm, documentation says in the Shorthand formats:

obsidian://vault/my vault/my note is equivalent to obsidian://open?vault=my%20vault&file=my%20note

But I will switch to the vault parameter in case that fixes opening from cli.

you were not using obsidian://vault/my vault/myfile
you were using obsidian:///absolute/path/to/my note and it requires a triple slash.

Ah, triple slash, first time for me! Well tried it and it didn’t open the vault I expected from the path, rather the previous open vault. So the full path name with /// should respect the file path and open the vault referred to from the absolute path.