pimutils / pimutils/khal

[Request] Support for showing just the next event

Open
#706 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
Dominant language
Python
Stars
3.1k
Forks
233
Avg merge
1h 44m
Merged PRs (30d)
1

Description

It would be nice to be able to list the next event (no matter how far in the future it is), with like khal list next:

$ khal list next
Saturday, 03.09.2017
 <Event>

Right now I can only specify a time frame and that kinda works with sed etc. But since it shows the event from the day before, it makes it a real hassle to output the next even in something like Conky.

$ khal list today week
Monday, 28.08.2017
 <Event>
Saturday, 03.09.2017
 <Event>

Anyone else who would like too see this? :)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the khal list command entry point and inspect how its current time-frame arguments select and render events. Trace why a range beginning today includes the previous day, then define the khal list next behavior so it finds the next event regardless of how far ahead it is and omits earlier events; add coverage for the requested output if the existing command tests are found.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.