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.

Environment

  • Operating system:
    MacOSX 10.15.7
  • Obsidian version:
    v0.11.13

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.
https://help.obsidian.md/Advanced+topics/Using+obsidian+URI

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.