Pick vault on app launch

Feature: A toggleable switch that lets me have the Open Vault window open on app launch.

Why: I’m currently trying to build a system for my university work whereby I have each of my courses as a separate vault (due to how totally unrelated they are), as well as maintain a personal vault for my own information. It would be really useful I could have the “open vaults” window open on startup.

11 Likes

An upcoming release will include URL scheme support, such that you can create links to different vaults by writing a link like so: obsidian://vault/Math or obsidian://vault/Physics%20and%20Chemistry—or even to a specific note.

You could then put those links elsewhere to create your own menu. Would this fix your issue?

4 Likes

That would work well when combined with Keyboard Maestro or set up something with Alfred.
Thanks!

1 Like

As a user of multiple vaults, it would be great to be able to open the app and choose between the vaults right away instead of opening whichever one happened to be last opened.

There are already a few settings on the launch window like language, adding a checkbox that says “open to launch window every time” would do wonders for my day-to-day workflow.

1 Like

Maybe this is related with your feature request:

So, for those who want start obsidian with Open Vault window, there is one way.
Did this only on Windows 10, so don’t know how to achieve Open Vault window on Mac or other OS (Other Windows versions might have some differences or nuances).

DO THIS ON YOUR OWN RISK.

  1. Go to %appdata%\obsidian folder. Full path: C:\Users\*username*\AppData\Roaming\obsidian. For example, with my nickname it would be C:\Users\Ellanxis\AppData\Roaming\obsidian.
  2. Find obsidian.json file.
  3. MAKE A BACKUP IN CASE SOMETHING GOES WRONG. If you mess up this file nothing really bad shouldn’t happens. In worst case you can just delete this file, but you will have to re-add all vaults, because obsidian store paths to them in this file.
  4. Open file with any text editor. It’s plain text file. I would suggest use VS Code, because you can press hotkey(Shift+Alt+F by default) or open command palette(Ctrl+Shift+P → enter Format Document) and format json into more readable view. By default it’s one big line.
    There is how my file looks after VS Code formatted it.
  5. ts – its last opening time (don’t know for sure, of course), used to sort a vaults list in Open Vault window. If you want sort vaults in a certain order, you can manually open vaults one by one in obsidian either you can copy the biggest value and paste to others decreasing by 1 each time. You can see this what I did for my 2-4 vaults at screenshot above.
  6. See "open": true line in first vault record? This line tells obsidian which vault was opened last time and which will open at next app start.
  7. Delete this "open: true line AND ALSO !!! DELETE COMMA ON LINE ABOVE !!!. If you edit json in default one-line format it would be look like this:
    изображение
    Again, you need delete "open":true and comma before it.
  8. Result will be looks this:

    Or:
    изображение
  9. Save and close file.
  10. At next app start it will open Open Vault window, but after you will open any vault, "open":true line will appear again.
  11. To avoid this you need open properties for obsidian.json file (Open context menu on the file → properties). After that tick Read-Only checkbox → Apply → OK.

That’s all. If you don’t mess up something, obsidian should open Open Vault window every time when you run app.

CONS \ NUANCES:
If you will try add\open new vault it would open (in my case), but wouldn’t add to vaults list at Open Vault window. It happens, well, because we ticked Read-only checkbox and obsidian can write anything to this file. If you need add new vault to list at Open Vault window, you should open properties of obsidian.json again, uncheck Read-only checkbox-> Apply->OK, then add new vault(s) and then repeat steps and delete "open":true line and comma before it.

3 Likes

Instead of pick vault on start-up, on could implement this as a long-click on the obsidian icon. A pop-up could show all available vaults and one could choose before even opening the app: [Feature] App shortcuts/3D touch - #2 by Gnuelp

If there were a commandline option under windows we could have several icons, one for each vault. At least on windows it seems to be quite simple. Unfortunately I was not able to find such a possibility.

You can use several icons to do this.
https://help.obsidian.md/Advanced+topics/Using+obsidian+URI