Add calendar event filter by text pattern#804
Open
pbjorklund wants to merge 3 commits intoivan-lednev:mainfrom
Open
Add calendar event filter by text pattern#804pbjorklund wants to merge 3 commits intoivan-lednev:mainfrom
pbjorklund wants to merge 3 commits intoivan-lednev:mainfrom
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
calendarFilterPatternsdefaults to[]so existing installs are unaffected on upgrade.The ical.test.ts timing flakes are pre-existing on main.