Skip to content

Comments

Add calendar event filter by text pattern#804

Open
pbjorklund wants to merge 3 commits intoivan-lednev:mainfrom
pbjorklund:feat/calendar-event-filter
Open

Add calendar event filter by text pattern#804
pbjorklund wants to merge 3 commits intoivan-lednev:mainfrom
pbjorklund:feat/calendar-event-filter

Conversation

@pbjorklund
Copy link

Shared calendars often contain whole-day blocks that clutter the timeline -- 'Spouse in Stockholm' as a 3-day event, vacation blocks spanning a week. There's no way to hide them short of removing the calendar entirely.

This adds a textarea in the day planner settings where you enter patterns to block (one per line, case-insensitive substring match). Matches hide both remote calendar events and local Markdown tasks. Empty list = no filtering.

Filtering runs as a derived Svelte store so changes take effect immediately without a re-fetch. Remote events match against summary, description, and location; local tasks match against their text.

calendarFilterPatterns defaults to [] so existing installs are unaffected on upgrade.

The ical.test.ts timing flakes are pre-existing on main.

…r events

Add a textarea in plugin settings (Remote calendars section) where users
can specify substring patterns (one per line). Calendar events whose
summary, description, or location contains any pattern are hidden from
the timeline. Matching is case-insensitive.

Useful for shared calendars that include whole-day or multi-day blocks
from other people that clutter the day view.
…st.ts

Consolidates all ical-related tests into one file, following existing
repo convention. Removes the separate calendar-filter.test.ts file.
Adds a textarea in settings where you can list patterns (one per line).
Events and tasks whose text matches any pattern are hidden from the day
view. Filtering runs at render time so changing patterns doesn't need a
calendar reload. For remote events the summary, description, and
location are all checked.
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