Skip to main content

Module watcher

Module watcher 

Source
Expand description

Vault file watcher (§5.5).

Watches the notes and trash trees. Events are coalesced through a debounce window (default 300 ms) so a burst of writes from an editor’s swap-and-rename produces a single re-index call per path. The caller supplies the per-path handler (the [Vault] re-indexes the file).

Structs§

MemoWatcher
Holds the underlying watcher alive. Dropping stops watching.

Type Aliases§

OnChange
A callback invoked once a path has settled (debounced). The handler owns the parse + re-index logic, including retries (§5.5).