Skip to content

[FR]: Recurring tasks: moving the next occurrence shouldn't clear other occurrences' history #2691

Backlog

Description

@martin-forge

Changing a recurring task's scheduled date clears every completed and skipped instance on or after the new date (#2147). Now that a moved occurrence keeps its original date in recurrence_original_date, this also deletes other occurrences' history.

For example, take a weekly Sunday task with 15 November completed, 29 November skipped, and its next occurrence on 22 November:

  • Moving 22 November to Saturday 21 November sets recurrence_original_date: 2026-11-22 and clears the skip on 29 November, so I have to skip 29 November again.
  • Moving 22 November back to 15 November also clears 15 November's completion, although the moved occurrence is still 22 November's.

#2633 makes the calendar ask first, as the date picker already does. But the only choices are to lose the skip or not move the task.

Suggestion: for scheduled-anchored tasks, a move clears nothing except, at most, the landing day. It clears the landing day only when the moved occurrence has no recurrence_original_date, so that day becomes its date, and the day is already completed or skipped. That happens for tasks synced to Google Calendar and for older off-pattern notes without a marker (applyRecurringMoveForScheduledChange). The existing confirmation would still cover that case. I've left completion-anchored tasks out, since a move re-anchors them.

#2147 cleared later dates to reopen accidental off-schedule completions. Would un-completing that occurrence directly cover this now, or is there a case that still needs the rule?

The rule is in two places that would need to change together:

Seen on TaskNotes 5.0.1; the rule is unchanged on main at 663d14e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions