pending.nvim/lua
Barrett Ruth 23ae390f23 feat(init): warn on dirty buffer before store-dependent actions
Problem: `toggle_complete`, `toggle_priority`, `prompt_date`, and
`done` (no-args) all read from `buffer.meta()` which is stale whenever
the buffer has unsaved edits, leading to silent no-ops or acting on the
wrong task.

Solution: Add a `require_saved()` guard that emits a `log.warn` and
returns false when the buffer is modified. Each store-dependent action
calls it before touching meta or the store.
2026-03-06 11:49:37 -05:00
..
pending feat(init): warn on dirty buffer before store-dependent actions 2026-03-06 11:49:37 -05:00