ObsidianTransport.registerVault
ObsidianTransport › registerVault
Type: (vaultPath: string) => Promise<void>
Registers a vault path so Obsidian can target it.On desktop: uses Electron IPC to open the vault and polls for readiness. On mobile: pushes only a minimal
.obsidian marker so the folder is recognized as a vault, points the app's localStorage at it, and reloads.It does **not** carry the vault's contents across on either platform — that is ObsidianTransport.pushFiles' job, which
TemporaryVault.register runs first. A caller driving a transport directly has to push before registering, or the app opens an empty vault with nothing raised to say so.