[opinionated feature request] khal list 30d should print events in the next 30 days
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.1k
- Forks
- 233
- Avg merge
- 1h 44m
- Merged PRs (30d)
- 1
Description
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!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the argument parsing for the khal list command and compare how starting dates and timedeltas are currently handled. Check the existing command tests, if present, and verify that khal list 30d covers the next 30 days while existing starting-date syntax continues to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100