Skip to content

Filter out recurring tasks from non-search task list view#63

Open
clobrano wants to merge 3 commits intomainfrom
claude/hide-recurring-tasks-views-az0Hx
Open

Filter out recurring tasks from non-search task list view#63
clobrano wants to merge 3 commits intomainfrom
claude/hide-recurring-tasks-views-az0Hx

Conversation

@clobrano
Copy link
Copy Markdown
Owner

Summary

Modified the task loading logic to exclude recurring tasks from the main task list view while keeping them visible in search results.

Key Changes

  • Added filtering logic in loadTasksCmd to remove tasks with "recurring" status from the task list
  • Filter is only applied when not in search tab mode (!isSearchTab), preserving recurring tasks in search results
  • Uses an in-place filtering approach to efficiently remove matching tasks from the loaded task list

Implementation Details

  • The filter is applied after successful task export (err == nil)
  • Recurring tasks are identified by checking t.Status != "recurring"
  • The implementation uses a slice filtering pattern that maintains the original task order while removing unwanted entries

https://claude.ai/code/session_01KQyTY3M9tRejgkGvQCdb4A

claude added 3 commits April 27, 2026 07:57
Recurring tasks are Taskwarrior template tasks used to generate
child instances and should not appear in regular task list views.
Filter them out after loading in all non-Search tabs.

https://claude.ai/code/session_01KQyTY3M9tRejgkGvQCdb4A
Recurring tasks (status:recurring) are Taskwarrior internal templates
used to generate child task instances and should not be synced to the
calendar as events.

https://claude.ai/code/session_01KQyTY3M9tRejgkGvQCdb4A
The previous fix prevented new events from being created for recurring
templates, but existing events from prior syncs were left in the calendar
and kept being updated. This adds a cleanup step that queries all recurring
template tasks and deletes any calendar events associated with their UUIDs.

https://claude.ai/code/session_01KQyTY3M9tRejgkGvQCdb4A
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