dmitrym0 / org-hyperscheduler

org-hyperscheduler is an Emacs package that helps you organize your day.
GNU General Public License v3.0
188 stars 14 forks source link

Web view does not show repeating tasks #27

Open MCotocel opened 10 months ago

MCotocel commented 10 months ago

Repeating tasks in my agenda (scheduled like so: SCHEDULED: <2023-09-07 Thursday 12:00-13:00 +1w>) do not show up in the web view apart from the first time they occur. For instance, the task scheduled above shows up only on the date of 2023-09-07 in the web view. However, in the org-agenda view, the task shows up every week, as is expected.

dmitrym0 commented 10 months ago

Thanks for the bug report. I generate all of the calendar entries here. It never occurred to me that it wouldn't resolve repeating tasks.

I wonder if there's existing org API for resolving repeating events. I suspect there might be, given that the agenda supports it.

Otherwise we'd have to resort to writing this ourselves, which is not preferable.

In any case a solution might look like so:

  1. Check to see the TODO entry is repeating.
  2. Generate a list of future events (with a limit of some sort. 6 months?).
  3. Add individual events to the event list.

One caveat here is to investigate how tui-calendar handles repeating events. Perhaps it would be sufficient to convert org's repeating notation into a repeating events specific that tui-calendar supports.

Happy to accept PRs in any case.

MCotocel commented 10 months ago

I'll take a stab at it and see what I can do over the next few days / weeks, once my school workload is a bit lighter.