pending.nvim/lua/pending
Barrett Ruth 559ab863a8
fix(buffer): fix stale extmarks, duplicate window, and fold state loss (#92)
Problem: Deleting lines (`dd`, `dat`, `d3j`) left extmarks stranded on
adjacent rows since `render()` only clears and reapplies marks on `:w`.
Quickfix `<CR>` opened the pending buffer in a second window because
`BufEnter` did not redirect to `task_winid`. Category fold state was
lost across `<Tab>/<Tab>` view toggles because `render()` overwrote the
saved state with an empty snapshot taken while folds were disabled.

Solution: Add a `TextChanged`/`TextChangedI` autocmd that clears the
extmark namespace immediately on any edit. Fix `BufEnter` to close
duplicate windows and redirect focus to `task_winid`, updating it when
stale. Fix `snapshot_folds` to skip if a state is already saved, and
`restore_folds` to always clear the saved state; snapshot in
`toggle_view` before the view flips so the state survives the round-trip.
2026-03-06 21:36:04 -05:00
..
sync refactor: normalize log message grammar and capitalization (#89) 2026-03-06 18:38:17 -05:00
buffer.lua fix(buffer): fix stale extmarks, duplicate window, and fold state loss (#92) 2026-03-06 21:36:04 -05:00
complete.lua refactor: remove file token feature (#50) 2026-02-26 22:41:38 -05:00
config.lua feat(buffer): add configurable category-level folds (#91) 2026-03-06 20:08:49 -05:00
diff.lua fix: empty buffer placeholder and checkbox pattern fixes (#82) 2026-03-06 12:07:52 -05:00
health.lua fix(diff): preserve due/rec when absent from buffer line (#68) 2026-03-05 12:46:54 -05:00
init.lua fix(buffer): fix stale extmarks, duplicate window, and fold state loss (#92) 2026-03-06 21:36:04 -05:00
log.lua fix(diff): preserve due/rec when absent from buffer line (#68) 2026-03-05 12:46:54 -05:00
parse.lua fix(diff): preserve due/rec when absent from buffer line (#68) 2026-03-05 12:46:54 -05:00
recur.lua feat: time-aware due dates, persistent undo, @return audit (#33) 2026-02-25 20:37:50 -05:00
store.lua fix(diff): preserve due/rec when absent from buffer line (#68) 2026-03-05 12:46:54 -05:00
textobj.lua fix(diff): preserve due/rec when absent from buffer line (#68) 2026-03-05 12:46:54 -05:00
views.lua feat: warn on dirty buffer before store-dependent actions (#83) 2026-03-06 12:08:10 -05:00