dengste / org-caldav

Caldav sync for Emacs orgmode
GNU General Public License v3.0
717 stars 105 forks source link

limit date range for sync #198

Open uliw opened 4 years ago

uliw commented 4 years ago

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

adql commented 3 years ago

@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 commented 3 years ago

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.

uliw commented 3 years ago

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 notifications@github.com 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

adql commented 3 years ago

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.