Skip to content

Label wt list diff columns with @ and ^ instead of HEAD and main - #4732

Merged
max-sixty merged 1 commit into
mainfrom
list-default-branch-header-caret
Nov 8, 2026
Merged

max-sixty merged 1 commit into
mainfrom
list-default-branch-header-caret

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

wt list labelled its ahead/behind and branch-diff columns main↕ and main…± in every repository, so a repo whose default branch is master or develop saw a header naming a branch it doesn't have (#4727). Following the discussion there, the headers now use the symbols worktrunk already gives these refs:

Column Before After
working-diff HEAD± @±
ahead-behind main↕ ^↕
branch-diff main…± ^…±

^ is the default-branch shortcut wt switch ^ accepts, and @ is both Git's and wt switch's name for the current HEAD. The ## Columns section of the list docs now explains this in place of the sentence that defended the fixed main label.

No column changes width. Each one is sized by its pre-allocated values (+999 -999, ↑99 ↓99), which were already wider than the old headers, so the only layout change is where the shorter header is centred. Config keys ([list] columns) and JSON output don't change.

The change itself is the three strings in ColumnKind::header. The rest is regenerated snapshots and doc mirrors, plus comments and test fixtures that quoted the old labels. One picker test, test_arrow_toward_row_ignores_the_column_header, relied on the header containing main; it now checks the same header exclusion with Remote, which appears only in the header row.

The demo GIF snapshots under docs/demos/snapshots/ still show the old headers. They come from the demo build (docs/demos/build), which needs VHS and isn't run here.

Locally, the list, picker, help and docs-sync tests pass, along with clippy and fmt. Some config_show/configure_shell tests and a few socket and signing tests fail in this sandbox, and they fail the same way on main.

Refs #4727. The issue's other points are still open: how C/K/∞ overflow values are shown and documented.

The ahead/behind and branch-diff headers read `main↕` and `main…±` in
every repository, which misnames the default branch wherever it isn't
called main. They now read `^↕` and `^…±`, using the `^` that
`wt switch` already accepts for the default branch. `HEAD±` becomes
`@±` to match, `@` being both Git's and `wt switch`'s name for the
current HEAD.

Column widths are unchanged: each column is sized by its pre-allocated
values, which were already wider than the old headers.

Refs #4727
@max-sixty
max-sixty merged commit 64515b0 into main Nov 8, 2026
36 checks passed
@max-sixty
max-sixty deleted the list-default-branch-header-caret branch November 8, 2026 08:13
max-sixty pushed a commit that referenced this pull request Nov 29, 2026
The `wt list` demo snapshots still showed the column headers from before
#4732 (`HEAD±`, `main↕`, `main…±`). This replaces the nine header lines
in `wt-core`, `wt-core-mobile`, `wt-list`, and `wt-merge` with `@±`,
`^↕`, `^…±`. Nothing else changes.

The new header lines come from a snapshot-mode run of the current debug
binary. I called `record_demo(..., snapshot_mode=True)` directly, which
needs only fish and `wt`, not VHS or zellij. In that run the body rows
line up exactly as committed, so updating only the headers matches
current output. I didn't commit the rest of the fresh output because it
differed in ways that come from the sandbox, not from `wt`: commit SHAs
and dates, a fish completions file that wasn't present, and a mock CI
cell that didn't render.

The published GIFs aren't regenerated here. Re-recording them takes
`./docs/demos/build docs` with the VHS fork, then `task publish-assets`
with a maintainer's go-ahead (`docs/demos/AGENTS.md`).

Refs #4939 — automated triage

Co-authored-by: worktrunk-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants