The acp box's pane indents a turn's calls by 11 columns; the user wants 2 or 4 #82
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/rexcity!82
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/rexcity-fweqp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The acp pane indents by 2 columns under an entry's head line, not by the 11 columns of
HH:MM:SS ●.--input full, a… N more linesline) is 4 in. Nothing is indented by the width of the time column any more.lineIndent, the fallback to 2 columns in a pane under 39 wide, is gone: it was the same width.render.gowrites inputs atinputIndent(2 spaces) and never had a time-column indent.CHANGELOG.md([Unreleased], Changed) updated.The user's sample, as
rexcity acp follow --color never --width 100draws it, before:and after:
Checked:
go vet ./...(linux and darwin),go test ./..., the v1 changelog check (valid=true),gofmt.Bead: rexcity-fweqp
Review of
f6596834ecfor rexcity-fweqp. Checks of the head: success.Verdict
pass
Findings
feedcuts a word longer than a line atp.avail()as the line being built stands. When that line is the head line and already holds text (short xxxx…),wrapPiecewrites the head first and puts the piece on a continuation line, which has 9 more columns than the piece was cut to.TestAWordLongerThanALineStartsOnALineOfItsOwnAndTheRestOfTheSentenceFollowsIt(pane_test.go:636) builds this in: its second line holds 89xwhere 98 fit. No line ever goes past the width, so it is only a short line, and only for a word longer than a line. A fix: infeed, whenw.curis not empty, cut the piece at the continuation width (p.usable() - paneIndent).Verified
pane.go,pane_test.go, the eight pane goldens, the README and CHANGELOG.md. Read REVIEW.md from main; main has no AGENTS.md or CLAUDE.md.paneIndent) applies everywhere: a turn's calls, a sentence's continuation lines, the running lines at the foot and the… N more calls runningcount at 2; a failed call's why,--input fullbodies and their… N more linesat 4 (2*paneIndent). The PR picks 2 and says so, says the log is unchanged (render.gois not touched; itsinputIndentis still 2) and shows the before/after sample. The tests, goldens, README and an[Unreleased]/ Changed entry follow the change.avail()gives the head lineusable-11and continuation linesusable-2, keyed onwrap.n.wrapWordreadsavail()again after each line it writes, andwrapEmitleavesnunchanged for an empty line, so a word that starts the sentence still gets the head's width. DroppinglineIndentloses nothing, because its narrow-pane fallback was already 2. The README drops the matching sentence.1f13f73), so the merge is clean.go vet ./...(host, darwin/arm64, linux/amd64) passes;go test ./...passes;go test -race -count=1 ./internal/acpbox/passes;gofmt -l internal/ cmd/prints nothing. Built the changelog checker from mikluko/changelog at tag v1 and ran it:valid=true.