pimutils / khal

:calendar: CLI calendar application

Home Page:https://lostpackets.de/khal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[opinionated feature request] khal list 30d should print events in the next 30 days

tgy opened this issue · comments

I would expect khal list 30d to print events in the next 30 days.

With the current version of khal, you have to do:

khal list `date +%F` 30d

Currently khal list <something> is going to try to parse <something> as a starting date/datetime.

My proposal is that we first try to parse the starting date/datetime, and if it fails, we try to parse a timedelta (e.g. "30d" or "5h") instead.

Happy to open a PR for that, but I want this to be validated before I put any work into this.

Thanks!