Skip to content

ObsidianIpcCurrentVault

Unofficial

The vault of the calling window, as Obsidian’s main process returns it on the vault IPC channel.

Both members are absent when the window belongs to no vault, such as the vault picker.

Import:

import type { ObsidianIpcCurrentVault } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ObsidianIpcCurrentVault

Properties

PropertyTypeDescription
id?stringThe vault's id, the key of its entry in the vault-list registry.
path?stringThe absolute path of the vault folder.

Links to this page: