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§
- Memo
Watcher - 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).