Repository navigation
Label wt list diff columns with @ and ^ instead of HEAD and main - #4732
Merged
Merged
Conversation
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
This was referenced Nov 8, 2026
1 task
This was referenced Nov 29, 2026
Open
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
wt listlabelled its ahead/behind and branch-diff columnsmain↕andmain…±in every repository, so a repo whose default branch ismasterordevelopsaw 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:working-diffHEAD±@±ahead-behindmain↕^↕branch-diffmain…±^…±^is the default-branch shortcutwt switch ^accepts, and@is both Git's andwt switch's name for the current HEAD. The## Columnssection of the list docs now explains this in place of the sentence that defended the fixedmainlabel.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 containingmain; it now checks the same header exclusion withRemote, 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_shelltests and a few socket and signing tests fail in this sandbox, and they fail the same way onmain.Refs #4727. The issue's other points are still open: how
C/K/∞overflow values are shown and documented.