derekantrican / GAS-ICS-Sync

A Google Apps Script for syncing ICS/ICAL files faster than the current Google Calendar speed
GNU General Public License v3.0
1.54k stars 197 forks source link

[Request] removePastEventsFromCalendar updated to match filter #445

Open travisp opened 4 months ago

travisp commented 4 months ago

Is your feature request related to a problem? Please describe.

I want to use the new filter feature and set my dtend to a negative value (e.g. sync events both in the future and in the past week). However, I want to leave older events. "removePastEventsFromCalendar" is no longer sufficient because it only looks at events before today.

Describe the solution you'd like

Preferably, I'd like either the ability to specify when exactly events will be removed, or a variable that toggles whether or not events outside of the filter should be removed. Generally, I want GAS-ICS-Sync to leave alone any events that are outside of the timeframe that it is syncing.

Additional context

No response