Skip to content

Clear completed tasks (Z / :TodoClearDone)#5

Merged
alexesba merged 3 commits into
mainfrom
feature/clear-done
Jun 10, 2026
Merged

Clear completed tasks (Z / :TodoClearDone)#5
alexesba merged 3 commits into
mainfrom
feature/clear-done

Conversation

@alexesba

@alexesba alexesba commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a one-step way to remove all completed tasks, with undo support.

  • Z in the pad clears every done task
  • :TodoClearDone — same action via command
  • Undoable with u — recorded as one bulk delete on the undo stack

Changes

  • store.lua: clear_done() — collects done task ids, delegates to
    delete_ids (undo-aware)
  • actions.lua / config.lua / init.lua / plugin/pinpad.lua: action,
    Z mapping, :TodoClearDone command
  • Tests: tests/clear_done_spec.lua (3 tests)
  • Docs: README + SPEC

Test plan

  • make test green (48 passed)
  • Manual: complete a few tasks, press Z — only pending remain
  • Manual: press u — cleared tasks restore
  • Manual: :TodoClearDone with no done tasks — "No completed tasks" notify

alexesbafh and others added 3 commits June 9, 2026 19:16
Deletes every task with done=true via delete_ids so the removal is
undoable as one step. Covered by clear_done_spec.

Co-authored-by: Cursor <cursoragent@cursor.com>
actions.clear_done removes all done tasks with a notification; bound to
mappings.clear_done (default Z) and exposed as :TodoClearDone.

Co-authored-by: Cursor <cursoragent@cursor.com>
README + SPEC for the new mapping and command.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alexesba alexesba merged commit 0961422 into main Jun 10, 2026
4 checks passed
@alexesba alexesba deleted the feature/clear-done branch June 10, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants