Skip to content

feat: add edit --priority and edit --list options - #5

Merged
udondan merged 3 commits into
mainfrom
feat-edit-priority-list
Sep 13, 2026
Merged

udondan merged 3 commits into
mainfrom
feat-edit-priority-list

Conversation

@udondan

@udondan udondan commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add edit --priority/--clear-priority to set or clear a reminder's priority. This is the priority portion of upstream pull request Add the ability to edit or clear the due date, and priority. keith/reminders-cli#87 by Aaron Fields (@bitfieldz); the due date portion of that PR is already covered by our existing --due-date/--clear-due-date support. Adapted to reuse the existing Priority enum instead of duplicating its raw value mapping, and committed with Aaron Fields preserved as author plus a Co-authored-by trailer.
  • Add edit --list <name> to move a reminder to a different list in place, by reassigning its calendar via the existing calendar(withName:) lookup.

Test plan

  • swift build -Xswiftc -warnings-as-errors
  • swift test -Xswiftc -warnings-as-errors (52 tests passing)
  • Manual smoke test via swift run reminders against a scratch list:
    • edit <list> <index> --priority high / --clear-priority
    • --priority + --clear-priority together correctly errors
    • edit <list> <index> with no options correctly errors
    • edit <list> <index> --list <other-list> moves the reminder and it shows up under the other list
    • --list <bogus-list> correctly errors with "No reminders list matching ..."

bitfieldz and others added 3 commits September 13, 2026 13:22
Adapted from the priority portion of upstream pull request
keith/reminders-cli#87 by Aaron Fields; the due date portion of that
pull request is already covered by our existing --due-date and
--clear-due-date support. Reuses the existing Priority enum instead
of duplicating its raw value mapping.

Co-authored-by: Aaron Fields <spirotot@gmail.com>
Lets a reminder be moved between lists in place instead of requiring
delete-and-re-add, by reassigning its EKCalendar via the same
calendar(withName:) lookup already used to resolve the source list.
@udondan
udondan merged commit 680ca2d into main Sep 13, 2026
@udondan
udondan deleted the feat-edit-priority-list branch September 13, 2026 11:26
udondan added a commit that referenced this pull request Sep 13, 2026
feat: add edit --priority and edit --list options
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