From 48fa63ff5d0e12edf86db7f01def635aa0aaa9fb Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 18 Oct 2026 15:29:35 +0200 Subject: fix(calendar): mark events past this week on the month grid The sampler asked khal for 8 days only, so the grid never coloured an event later in the month. Sample through the month's end instead, and cut the event table back to the coming week with calendar_upcoming(). Co-Authored-By: Claude Opus 5.5 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index fa2451b..eb35020 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,8 @@ for, including ones with nothing on this week: it is a colour key, not a second list of what is coming. Events come from a cache file written by `bin/calendar-sample.sh`, which shells -out to `khal`. The card shows as many rows as the cell affords and ends with +out to `khal` for the rest of the month (at least 8 days), so the grid marks +every remaining day with an event while the rows stay the coming week. The card shows as many rows as the cell affords and ends with `+N more` when the week does not fit, since a card that silently drops the rest of the week defeats its own purpose. A cell too short for even one row draws the grid alone, without the legend, rather than a clipped half-row. -- cgit v1.2.3