org-caldav icon indicating copy to clipboard operation
org-caldav copied to clipboard

limit date range for sync

Open uliw opened this issue 5 years ago • 4 comments

Hi there,

this is an awesome tool! Is there a way to limit the date range for the synchronization? I've been using google calendar for years, and I have no need to sync the past 10 years. More importantly, however, it slows emacs to a crawl when opening the file.

I may be overlooking the obvious here, so thanks for any pointers

Cheers

Uli

uliw avatar Jan 21 '20 19:01 uliw

@uliw Have you found a solution in the meantime? My old calendar entries are a mess, it renders the entire thing useless for me.

adql avatar Feb 17 '21 09:02 adql

A quick solution is to deactivate the timestamps of old entries so that the agenda view doesn't take ages to load, if at all. A useful regex replacement: <\(20\(?:[01][0-9]\|20\).*?\)> -> [\1] (deactivates all timestamps for the years 2000-2020).

Running org-caldav-sync again doesn't reactivate them fortunately.

adql avatar Feb 17 '21 10:02 adql

I don't think so. Syncing stopped working and was unable to get it going again

On Wed, Feb 17, 2021 at 5:11 AM Amir Dekel [email protected] wrote:

A quick solution is to deactivate the timestamps of old entries so that the agenda view doesn't take ages to load, if at all. A useful regex replacement: <(20(?:[01][0-9]|20).*?)> -> [\1] (deactivates all timestamps for the years 2000-2020).

Running org-caldav-sync again doesn't reactivate them fortunately.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dengste/org-caldav/issues/198#issuecomment-780449071, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWSVAUBZAYO4WUST5773MLS7OI43ANCNFSM4KJYVNZA .

-- Ulrich G. Wortmann https://www.es.utoronto.ca/people/faculty/wortmann-ulrich/ Dept. of Earth Sciences Fax : 416 978 3938 University of Toronto Phone: 416 978 7084 22 Ursula Franklin Street, Toronto, ON, Canada M5S 3B1

uliw avatar Feb 17 '21 13:02 uliw

Sorry, I didn't mention that I'm only syncing downwards ('cal->org). If you're syncing both directions it seems likely that this shouldn't work.

adql avatar Feb 17 '21 13:02 adql