You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move view configurations and workspaces to vault-specific storage (.zennotes) #292
Is your feature request related to a problem? Please describe.
Currently, all configurations for ZenNotes are stored globally in ~/.config/zennotes/config.toml. This includes UI and layout preferences like task_view_mode, group_by_kind, and other view settings.
The limitation here is that these view preferences are applied globally across all vaults. If a user has multiple vaults (e.g., one for personal journaling and one for professional project management), they might want entirely different view setups for each workspace.
Describe the solution you'd like
I propose moving view-specific and layout configurations out of the global config file and into a vault-specific directory, specifically utilizing the .zennotes directory located at the root of each vault.
Global Config (~/.config/zennotes/config.toml): Keeps truly global settings (e.g., app themes, global hotkeys, telemetry).
Vault-Specific Config (<vault-root>/.zennotes/config.toml or settings.json): Houses settings that dictate how that specific vault is looked at and interacted with (e.g., layout states, grouping rules, sorting methods).
Describe alternatives you've considered
Keeping everything global is an alternative, but it restricts flexibility as the app grows and users begin managing distinct, highly customized vaults.
Additional context & future opportunities
Moving to a local .zennotes directory opens up some great opportunities for feature expansion.
For example, we can introduce a workspace.json file inside the vault's .zennotes directory. This file could track stateful data like:
Currently open tabs/files.
Cursor positions.
Active sidebar state.
The biggest benefit: If a user syncs their vault across multiple machines (via Git, Syncthing, Dropbox, iCloud, etc.), their entire active workspace state syncs with it. Opening ZenNotes on a second machine would seamlessly restore the exact same open tabs and layout they left off with on their first machine.
I'd love to hear your thoughts on this architectural change! If this aligns with the project's vision, I'd be happy to help discuss implementation details.
Implemented and shipped on the release/v2.9.0 branch — thanks for the well-reasoned proposal, @junereycasuga, and for offering to help! 🙏 Both of your ideas landed:
View settings can now be per-vault. A new Global | Per vault toggle (Settings → Vault → View settings) controls it. In Per vault, the "how this vault looks" prefs — sort order, group-by-kind, the Tasks view (list/calendar/kanban), kanban columns, auto-reveal, system-folder labels, unified sidebar — are stored in that vault's .zennotes/vault.json and overlay the global default. It defaults to Global, so existing setups are unchanged and per-vault is opt-in.
Workspace state syncs with the vault. Open tabs, pane layout, and sidebar state now save to <vault>/.zennotes/workspace.json (debounced, newest-wins by timestamp), so opening the vault on another machine restores your layout — exactly the sync benefit you described. localStorage stays a fast local cache so first paint isn't blocked.
Two honest notes:
Per-vault uses a "writes-both" model for now (the global value stays a floating default for vaults with no override) rather than pure isolation — a small follow-up if you'd want fully-frozen isolation.
Cursor positions aren't synced yet: ZenNotes doesn't track per-note cursor as state anywhere, so that'd need building first. The workspace file covers tabs/layout/sidebar.
Verified end-to-end (the .zennotes/vault.jsonview block and workspace.json both write + gate correctly). Ships in v2.9.0 — great issue! 🌲
Activity
feat(vault): per-vault view settings + synced workspace (#292)
adibhanna commentedon Jul 1, 2026
Implemented and shipped on the
release/v2.9.0branch — thanks for the well-reasoned proposal, @junereycasuga, and for offering to help! 🙏 Both of your ideas landed:View settings can now be per-vault. A new Global | Per vault toggle (Settings → Vault → View settings) controls it. In Per vault, the "how this vault looks" prefs — sort order, group-by-kind, the Tasks view (list/calendar/kanban), kanban columns, auto-reveal, system-folder labels, unified sidebar — are stored in that vault's
.zennotes/vault.jsonand overlay the global default. It defaults to Global, so existing setups are unchanged and per-vault is opt-in.Workspace state syncs with the vault. Open tabs, pane layout, and sidebar state now save to
<vault>/.zennotes/workspace.json(debounced, newest-wins by timestamp), so opening the vault on another machine restores your layout — exactly the sync benefit you described.localStoragestays a fast local cache so first paint isn't blocked.Two honest notes:
Verified end-to-end (the
.zennotes/vault.jsonviewblock andworkspace.jsonboth write + gate correctly). Ships in v2.9.0 — great issue! 🌲junereycasuga commentedon Jul 1, 2026
thanks so much @adibhanna
[MERGE] v2.9.0: integrate upstream release v2.9.0 into the personal fork