kidd / org-gcal.el

Org sync with Google Calendar. (active maintained project as of 2019-11-06)
435 stars 47 forks source link

Repeating events in org are not created as repeating in Google calendar #165

Open wrn opened 2 years ago

wrn commented 2 years ago

For example, when I run M-x org-gcal-post-at-point on this: ***** TODO My weekly task SCHEDULED: <2021-09-24 Fri 20:00-21:00 +1w>

It does not show as a repeating task in Google Calendar

telotortium commented 2 years ago

Yes, I don't think org-gcal supports this yet. Part of the reason is that the Google Calendar repetition syntax is more general that the Org syntax, so if you changed the repetition of the event in Google Calendar, it wouldn't necessarily round trip.

However, we do have the variable org-gcal-recurring-events-mode. If set to nested, it will nest instances of repeating events under a headline for the parent event. You could imagine translating the Org timestamp repeat syntax to Google Calendar repetition syntax, creating a parent event with that repetition syntax, putting the calendar and event ID for that event in this headline, and then retrieving the child events to nest under this event (if desired).

Feel free to implement this as a PR - I don't know how long it'll be before I get to this.

wrn commented 2 years ago

In my case, I only care about org -> Google Calendar one way sync. But I can see two way sync could be an issue here.