Skip to content

ObsidianVaultRegistryEntry

A vault Obsidian knows, as its obsidian.json records it.

Import:

import type { ObsidianVaultRegistryEntry } from '@mnaoumov/obsidian-dev-toolkit/obsidian-vault-registry';

Signature:

export interface ObsidianVaultRegistryEntry

Properties

PropertyTypeDescription
idstringThe vault id, the key of the entry in obsidian.json.
isOpenbooleanWhether a window of the running Obsidian has the vault open.
lastOpenedAtnumberWhen the vault was last opened, in milliseconds since the epoch, or 0 when obsidian.json does not say.
namestringThe vault's name as Obsidian and its CLI know it, which is the name of the vault's folder.
pathstringThe absolute path of the vault folder.

Links to this page: