Post

Create shortcut icons for multiple Obsidian vaults - URI

In some cases, there may be users who organize their posts by creating multiple vaults according to categories. It can be annoying to open the Vault in Obsidian every time you open it. So, I would like to introduce a method of creating a shortcut icon that can open Obsidian for each vault in a Windows environment.

To explain the principle, when running obsidian.exe by shortcut icon, you add parameters as argument values to tell Obsidian which vault to open first. Obsidian calls this URI.

What you need to know in advance

Before creating the Obsidian Vault shortcut icon, you need to know the path to obsidian.exe and the path to your Vault. In conclusion, we will set the command line in the form below to the shortcut icon.

1
<Path Of Obsidian.exe> obsidian://open?path=<Path Of Vault>

If you look at the example below, you can easily figure out the Target command line.

1
2
3
4
5
6
7
8
9
10
11
# Example 
<Path of Obsidian.exe>
    C:\Users\myaccount\AppData\Local\Obsidian\Obsidian.exe
    
<Path Of Vault>
    C:\Data\VaultExport
    obsidian://open?path=C:\Data\VaultExport

# Target 
C:\Users\myaccount\AppData\Local\Obsidian\Obsidian.exe obsidian://open?path=C:\Data\VaultExport

Create Obsidian shortcut icon

Right-click the location where you want to create an Obsidian Vault shortcut icon and press the Shortcut button.

Obsidian shortcut icon creation process - Shortcut creation Obsidian shortcut icon creation process - Shortcut creation

Then enter the full path to obsidian.exe.

Obsidian shortcut icon creation process - obsidian.exe path Obsidian shortcut icon creation process - obsidian.exe path

Then, enter the name of the shortcut icon.

Obsidian shortcut icon creation process - Icon name Obsidian shortcut icon creation process - Icon name

Then, an Obsidian shortcut icon with the name you entered will be created. And Right-click on the icon and select the Properties menu.

Property menu of the created Obsidian shortcut icon Property menu of the created Obsidian shortcut icon

Add one space after the obsidian.exe path and add the Obsidian Vault path created above.

Properties of Obsidian shortcut icon Properties of Obsidian shortcut icon

This post is licensed under CC BY 4.0 by the author.