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 ObsidianVaultRegistryEntryProperties
| Property | Type | Description |
|---|---|---|
| id | string | The vault id, the key of the entry in obsidian.json. |
| isOpen | boolean | Whether a window of the running Obsidian has the vault open. |
| lastOpenedAt | number | When the vault was last opened, in milliseconds since the epoch, or 0 when obsidian.json does not say. |
| name | string | The vault's name as Obsidian and its CLI know it, which is the name of the vault's folder. |
| path | string | The absolute path of the vault folder. |
Links to this page: