Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeated tasks on the calendar with --once should only show next occurance, not all of them #1233

Open
dusanx opened this issue Apr 10, 2023 · 1 comment

Comments

@dusanx
Copy link

dusanx commented Apr 10, 2023

Hi, I am generating ics file from org-mode and importing into khal with

khal import -a todo --batch ~/.todo.ics

and everything works great.

Now I have reoccurring task happening every week, example from ics file would be

BEGIN:VEVENT
DTSTAMP:20230410T175402Z
UID:TS1-af74116d-3ee3-42aa-b187-02be8451b958
DTSTART;VALUE=DATE:20230417
DTEND;VALUE=DATE:20230418
RRULE:FREQ=WEEKLY;INTERVAL=1
SUMMARY:Here is some repeating task example
DESCRIPTION:Yes, description too.
CATEGORIES:todo
END:VEVENT

and khal calendar --once today 30d correctly shows task once in the 'at' list on the right, but calendar itself highlights all Mondays in the future.

Expected behavior: with --once and repeated tasks, khal should only highlight next date on the calendar, not all repeated dates in the future.

I can snap screenshot if needed but this is easy to test and replicate. Anything I can help with just let me know.

@dusanx
Copy link
Author

dusanx commented Apr 10, 2023

Update:

I can achieve desired results by removing repeat line from ics file before importing in khal but even better if khal can follow --once in calendar.

sed -i '/RRULE:FREQ/d' ~/.todo.ics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants