mnaoumov_obsidian-backlink-.../demo-vault/_assets/CodeScriptToolkit/startup.ts
Michael Naumov 3e27a6af52 feat: add demo vault
Ship a curated demo-vault/ for Backlink Full Path, bootstrapped by the
release-injected obsidian-dev-utils demo-vault-helper. Three same-named Meeting
notes in different folders link to a shared note so the Backlinks pane shows each
one's full path; a Settings note documents every option. Add a static
registerDemoVaultCoverageSuite no-app test, the project dprint.json (excludes
demo-vault), and the README demo vault access section.
2026-07-20 02:23:55 -06:00

10 lines
447 B
TypeScript

// Per-vault startup script, run by the universal Demo Vault Helper plugin (via CodeScript
// Toolkit's require) once CodeScript Toolkit is installed and enabled. This is where each
// plugin's demo vault does its own startup setup. Here it just opens the landing note.
const START_NOTE_PATH = '00 Start.md';
const startNote = app.vault.getFileByPath(START_NOTE_PATH);
if (startNote) {
void app.workspace.getLeaf(false).openFile(startNote);
}