Opt-in to create notes in type-based subfolders (and move on type change)
planned
Dima Diall
The ask:
A vault config toggle that routes new notes to people/, projects/, notes/ etc. instead of vault root — and optionally moves notes when their type changes.Why opt-in:
Zero impact on flat-vault users. Default stays as-is.Two sub-options under one config flag:
- createInTypeFolder — new notes go to the right folder immediately
- moveOnTypeChange — changing a note's type in properties also moves the file
Architectural alignment with existing Tolaria ADRs:
- ADR-0033 already confirmed subfolders as valid vault locations
- ADR-0076 deliberately decoupled type from folder — this preserves that (folder follows type, not replaces it; only when opted in)
- ADR-0006 includes the clause "re-evaluate if users need nested folder hierarchies" — this is that trigger
- Tolaria already scans subfolders recursively and resolves wikilinks by title, so files in subfolders work seamlessly
Scope:
~15 lines in useNoteCreation.ts for creation, ~30 lines in type-retargeting handler for moves, plus config UI toggle. Small, focused change.Use case:
Users who browse their vault via filesystem (Finder, git, terminal) and prefer "ls people/" over "grep 'type: Person' *.md".Luca Rossi
Dima Diall you can go ahead and draft a PR! this makes sense
Luca Rossi
updated the status to
planned
Dima Diall
I'm happy to implement and test this before submitting a PR for review, but would like a nod from Luca Rossi first.
Luca Rossi
Dima Diall you can go ahead and draft a PR! this makes sense
Dima Diall
Luca Rossi I'm away at the moment, will get to it in a couple weeks when I'm back