Repository navigation
Sibling plugin: multiple books, one vault #154
Replies: 2 comments
|
Thank you — this is a careful piece of work, and the "refuse to switch while a page has unsaved edits" guard is exactly the right instinct. I'd rather keep it a sibling plugin for now. Budget Vault's API is read-only by design (apiVersion 1), and a public write to So: please document the |
|
Done — documented as unsupported and pinned: AyrXZ47/obsidian-budget-books@fefedc7 The README (EN/ES) now has a Support status section: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi Ruan — an idea about
budget-appyou may not have considered, and a working prototype of it.Budget Vault reads one budget folder per plugin (
settings.budgetFolder). I wanted several books — personal, business, one per client — in the same vault, without opening a vault per book and without the numbers mixing. SincebasePath()reads the setting on every call, one setting write plus a reload is a full book change. That was the whole opening.It works today: obsidian-budget-books adds a dropdown to the Budget view's top bar, treats any folder under
Finances/with aSettings.mdas a book, and refuses to switch while a page has unsaved edits, so a row cannot land in the wrong book. No Budget Vault code is copied or bundled.Two ways this could end, both fine by me:
settings.budgetFolderand callsview.appCtl.reload(), because yourapiVersion 1API is read-only. A write side —api.setBudgetFolder(path), say — would remove the private coupling entirely.One thing worth knowing either way: because
budgetFolderlives indata.json, the active book now syncs across devices, and two devices switching at the same time can conflict in that file.Verified in a live vault on Budget Vault 1.54.0, and checked against 1.56.0's source. Happy to hear no on either path — it is your plugin.
All reactions