Skip to main content

Module store

Module store 

Source
Expand description

The data folder: one NNNN-slug.md file per task, tags.md, and exported reports in reports/.

Structs§

BrainLock
A brain’s write lock, held until dropped (see Store::lock).
Change
A file a change wrote or deleted: what it held before and after, None where it didn’t exist.
Store
The data folder where tasks are stored.

Enums§

UndoError
Why changes can’t be undone.

Constants§

PROJECT_DIR
A project’s own data folder, found by walking up from the current directory like .git.

Functions§

find_project
The nearest .brain/ folder in start or one of its parents.
undo
Puts the files changes wrote back as they were before, last change first. Nothing is written unless every file still holds what the changes left in it.