s-ed22 downloadsShow your own display names for vaults in the vault switcher, the vault name label and the window title. Folders and paths are not changed.
An Obsidian desktop plugin that shows your own display names for vaults.
Obsidian names every vault after its folder, so several vaults whose folder is called Documentation or Notes look the same in the vault switcher. Vault Aliases lets you give each vault a name of your choice. No folder or path is renamed; only what Obsidian displays changes.
| Without the plugin | With the plugin |
|---|---|
![]() |
![]() |
[!WARNING] Obsidian has no public API for vault names, so this plugin relies on Obsidian internals. An Obsidian update can stop it working. Disabling the plugin restores Obsidian's own behaviour at once. Details: Limits and fragility.
<note> - <vault> - Obsidian, including the separate Settings window of newer Obsidian versions.The Manage vaults window is not changed, because plugins do not run there. It shows each vault's path.
There is no build step. The plugin is two files, main.js and manifest.json.
.obsidian/plugins/vault-aliases/.main.js and manifest.json into it.Repeat steps 1 to 3 in every vault where you want the aliases shown. A vault without the plugin shows folder names as before.
Open Settings → Vault Aliases. The page lists every vault Obsidian knows, with its path. Type a name next to a vault and press Enter or leave the field. The change applies immediately.
A vault's displayed name is looked up in this order:
An empty field means you have no alias of your own for that vault, so it falls back to 2 or 3. The field's placeholder shows what that would be.
Each row has a reset button (↺) that removes your alias, so the vault's own alias or the folder name shows again. The row of the vault you are in also has a save button (↑) that stores your current alias as the vault's own alias. If the vault already carries a different alias, it asks first ("Change alias? Old → New").
A vault can carry one alias for itself, in its config folder: <vault>/.obsidian/vault-alias.json.
{ "version": 1, "alias": "Work docs" }
It travels with the vault. If the vault is a shared or cloned repository and .obsidian/vault-alias.json is committed, everyone who uses the plugin sees that name until they set their own.
.obsidian.If you share a vault through git, commit .obsidian/vault-alias.json but not .obsidian/plugins/vault-aliases/data.json: that file holds a path on your own machine.
Your own aliases are stored in one JSON file outside all vaults, so that every vault with the plugin enabled shows the same names:
{
"version": 1,
"aliases": {
"C:\\Users\\me\\Work\\Documentation": "Work docs",
"D:\\Projects\\game\\Documentation": "Game design"
}
}
vault-aliases.json in Obsidian's own per-user settings folder, next to obsidian.json: %APPDATA%\obsidian on Windows, ~/Library/Application Support/obsidian on macOS, $XDG_CONFIG_HOME/obsidian or ~/.config/obsidian on Linux. Because every vault uses the same default, the names are shared without any setup. Change the path only if you want the file somewhere else, for example in a synced folder.APPDATA, your home folder). It does not follow a custom Obsidian data folder. A path is saved, in the plugin's data.json inside the vault, only once you edit the Alias file field.Desktop only. It uses Node and Electron, which Obsidian mobile does not have.
Tested on Windows and Linux (Linux: Obsidian 1.15.1 under WSL). Not tested on macOS. Minimum app version in the manifest: 1.5.0.
It relies on Obsidian internals that are not public API:
vault-list, vault and vault-open IPC calls;.workspace-drawer-vault-switcher and .workspace-drawer-vault-name;app.getAppTitle and app.setting.popout, for the title of the separate Settings window. Where these do not exist, only that window's title is left alone.An Obsidian update can break any of these. After updating, check that the vault switcher still opens and switches vaults. Disabling the plugin restores Obsidian's own behaviour at once.
The plugin's switcher menu lists vaults and Manage vaults... only. Anything else Obsidian puts in its own menu is not reproduced.
Disable the plugin and delete .obsidian/plugins/vault-aliases/ from each vault. Your alias file and any vault-alias.json in a vault's config folder are left in place; delete them yourself if you no longer want them.
Plain JavaScript in a single file; edit main.js and copy it to a vault's plugin folder, then reload Obsidian (or disable and re-enable the plugin). There are no dependencies. node tests/test-aliases.cjs checks the lookup order and the two alias stores with Obsidian stubbed out; the settings page and the switcher menu are not covered by it.
vault-alias.json, used when you have no alias of your own for it; reset and save buttons on the settings page.MIT. See LICENSE.