Skip to content

Add includedCalendarSections filter to filter tasks by calendar section headings#730

Open
dwertheimer wants to merge 2 commits intomainfrom
feature/included-calendar-sections-filter
Open

Add includedCalendarSections filter to filter tasks by calendar section headings#730
dwertheimer wants to merge 2 commits intomainfrom
feature/included-calendar-sections-filter

Conversation

@dwertheimer
Copy link
Collaborator

@dwertheimer dwertheimer commented Jan 21, 2026

This PR finalizes @jgclark support for filtering tasks by calendar section headings using the includedCalendarSections setting.

Changes

  • Add includedCalendarSections setting (CSV string) to filter calendar note tasks by section headings
  • Implement filterParasByIncludedCalendarSections function with partial, case-insensitive matching
  • Apply filter to all time period sections (today, yesterday, tomorrow, week, month, quarter, year)
  • Apply filter to overdue section
  • Apply filter to referenced paragraphs
  • Update done counts to respect includedCalendarSections filter
  • Add section description helper to show filter status (e.g., 'showing Medawar only')
  • Update Flow types to include includedCalendarSections as optional string

Testing

The filter uses partial, case-insensitive matching, so "Medawar" will match headings like "Medawar Tasks" or "The Medawar Section". When the filter is active, section descriptions will show "(showing Medawar only)" to indicate the filter is applied.

…on headings

- Add includedCalendarSections setting (CSV string) to filter calendar note tasks by section headings
- Implement filterParasByIncludedCalendarSections function with partial, case-insensitive matching
- Apply filter to all time period sections (today, yesterday, tomorrow, week, month, quarter, year)
- Apply filter to overdue section
- Apply filter to referenced paragraphs
- Update done counts to respect includedCalendarSections filter
- Add section description helper to show filter status (e.g., 'showing Medawar only')
- Update Flow types to include includedCalendarSections as optional string
@dwertheimer dwertheimer requested a review from jgclark January 21, 2026 17:09
- Add mention of H4->H2 hierarchy to match applyIgnoreTermsToCalendarHeadingSections style
- Clarify that 'all items for this section are included' when setting is blank
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.

1 participant