mirror of
https://github.com/max-sixty/worktrunk.git
synced 2026-11-15 14:20:48 +08:00
`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. Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>