-
(001b639) Show the comment count on a board card, and bump to 0.24.1
released this
2026-08-23 12:45:02 +00:00 | 66 commits to master since this releaseA card had four corners and none of them said whether anybody had written
anything on the ticket. Finding out meant opening the detail view or running
show, which is the question the board exists to answer before you commit
to a card rather than after.The count goes in the bottom right, left of the criteria count. Both are
about the ticket rather than about the reader, and the criteria count is what
that corner has always been: this is what has been added beside it, so it is
what sits further from the edge and what goes first when the column is
narrow. How far along a ticket is outranks whether somebody has said
something about it.corner_linetakes the whole right-hand group now instead of one span, and
the group gives up its items from the front until what is left fits. With one
item that is exactly the old behaviour, which is what the top row still
wants, sodue_spanreturns aSpanrather than theOption<Span>it only
ever had to satisfy the signature. The single space between items lives in
corner_linebeside the gap arithmetic, not in the caller: the same reason
column_areasis shared between the draw andfollow_selection, that
geometry reproduced by hand drifts from the draw.commentsis a field onTicketItem, filled wherecriteriaandtags
already are, and it is the one entry on that pass that costs a directory
listing rather than coming off content in hand. So it is counted, never read:
.mdonly, the filterread_commentsapplies, and no body is opened,
because a count needs none of them. The alternative was aread_dirper
ticket per frame.collect_ticket_itemsderives the board fromstatus_path.parent()rather
than taking it as a second argument. Every caller joins a status onto a board
it already holds, and two arguments would let a status directory from one
board arrive with the comments of another.comments_dirnow spells that
path once for the writer, the reader and the counter, the waycampaigns_dir
does for its directory.Zero draws nothing, not a
0and not a blank cell held open. An uncommented
card is the row it has always been, down to the spacing, which is pinned
exactly rather than by acontains.The mark is U+275E, a Dingbat, and the choice is about arithmetic as much as
reading. U+1F4AC SPEECH BALLOON is emoji presentation and East Asian Width
Wide, so it draws two cells wherespans_widthcounts one character and
every corner on the card lands a cell out. U+1F5E8 LEFT SPEECH BUBBLE is
text presentation and Neutral but sits in a pictograph block most terminal
fonts leave as tofu. This one has the coverage the priority meter's Geometric
Shapes have. Cyan, and the only coloured thing on a row whose owner and
criteria count are grey: two counts side by side otherwise read as one number
in brackets and another that lost its brackets.The no-per-draw test takes the comments directory away after the board is
built, and is paired with one that adds a comment and reloads, because a
count that never asked the filesystem again would pass the first by never
changing at all. The digest already moved on a new comment, so the reload is
what recounts.Patch rather than minor: the corner was already two numbers and a mark, and
this settles what it says rather than adding a view.Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com
Downloads