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

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

Open
tgy opened this issue Jun 23, 2023 · 1 comment

Comments

@tgy
Copy link
Contributor

tgy commented Jun 23, 2023

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!

@geier
Copy link
Member

geier commented Jun 23, 2023 via email

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