use cases
Organize a knowledge base by PARA, GTD, or Zettelkasten
Encode your method as declarative dig org rules — folders, naming, labels — and dig files every note to match, reversibly. The mental model becomes policy, not manual upkeep.
PARA, GTD, and Zettelkasten are all rules about where a note belongs and what it's called. dig's policy engine turns those rules into something that enforces itself.
How it works
- Write the method as policy. Each
[[rule]]is amatch → action:intosets the folder,renamesets the filename,labeltags it. PARA becomes four destination rules; Zettelkasten becomes an ID naming template; GTD becomes context labels. - Apply it.
dig orgfiles every matching note to the layout your rules describe.--dry-runpreviews every move first. - Keep it converged.
dig driftreports notes that no longer match the method;dig reconcilebrings them back — auto where safe, by proposal where not.
# PARA example — projects / areas / resources / archive as rules
dig init ~/kb
dig scan
dig org --dry-run # preview the filing your rules produce
dig org # apply; every move/rename/label is journaled
dig drift # what has wandered from the method
Why dig
- The method is the config. You organize by writing rules in your policy file — no preset to pick, just the structure you want, declared once.
- Self-correcting. Drift detection means the system tells you when reality diverges from the method, instead of you noticing months later.
- Reversible. Re-foldered everything wrong?
dig undoreverses the whole changeset.