Repository navigation
v0.6.0 — 2026-11-13
What's New
- The app now fits any terminal window — every screen tightens to fit a small window instead of running off the edge or wrapping (works down to 44 columns × 12 rows; anything smaller shows a short notice).
- A clearer first-run setup — setup shows which step you're on, checks for git and the GitHub CLI up front, ticks off what it scans as it goes, and finishes with a "try next" screen.
- Updates go through Homebrew when Homebrew installed gitswitch —
gitswitch upgradeand the in-app update prompt now runbrew upgradefor you rather than downloading a second copy beside it (installs made with the install script still update themselves). - Beta builds on Homebrew —
gitswitch betaandgitswitch stablenow swap between two formulae in the same tap, so Homebrew keeps handling updates on either channel (aksisonline/tap/gitswitchandaksisonline/tap/gitswitch-beta). gitswitch --version— prints the installed version instantly and offline (-vand--vwork too).gitswitch versiontells you more — it now shows your channel and how gitswitch is updated, and--jsonprints the same for scripts.- Help that's easier to read —
gitswitch --helplists commands in the order you need them with examples, and every command's--helpshows its own flags and examples. - Flags mean the same thing everywhere —
--json,--yes,--dry-runand--quietbehave identically on every command that has them (upgrade,betaandstablegained--dry-runto preview exactly what they would run). - Friendlier mistakes — a wrong argument now says what was expected and points to that command's help, and a mistyped command or nickname gets a "did you mean…?" (usage errors exit with status 2).
- Short command names —
ls,rm,use,whoamiandupdatework as shortcuts forlist,remove,switch,currentandupgrade. - Tab completion knows your accounts — pressing Tab completes your nicknames and the allowed values of flags like
--shell. - You can see it working — a spinner shows while a switch, pin or toggle is applied, the tab marker slides between tabs, and the account you switched to glows for a moment (set
GITSWITCH_REDUCE_MOTION=1to turn the decoration off). gitswitch doctorspots duplicate installs — it warns when two copies of gitswitch are on your PATH, the usual reason an upgrade seems to do nothing.
Bug Fixes
- The screen no longer jumps around — status messages, toggles, the update notice and changing tabs used to resize or move the whole panel; everything now stays put.
- The update prompt no longer appears under your keystroke — it only opens by itself before you've pressed anything, and "not now" is remembered for that release (press
uwhen you're ready). - Utilities and Settings now show what happened — result messages such as "pre-commit guard enabled" were being set but never displayed on those tabs.
gitswitch shellsetup fits on a standard terminal — every step was taller than 24 rows and lost its title off the top; steps you've already set up are now skipped and the step counter is correct.- Setup can be skipped from the keyboard — "Skip for now" used to be reachable only with the mouse, and the wizard's button borders were misaligned.
- New users no longer see an empty "What's New" screen — it could appear on the second launch with nothing in it.
- First launch opens setup straight away — it used to wait on a blank screen while fetching release notes nobody needed yet.
- The add/edit form stays inside the window — on short terminals it now scrolls with the field you're on instead of pushing the buttons off-screen.
- Clicks land on what you see — mouse targets are now taken from what is actually drawn, so they stay right at every window size.
gitswitch betano longer moves you backwards — right after a stable release, when no newer beta exists yet, it says so and leaves you on stable.- The install script won't create a second copy — if Homebrew already manages gitswitch, it stops and tells you to use
brew upgradeinstead. - Upgrading on Windows no longer fails when gitswitch is open elsewhere — the installer now moves the old
gitswitch.exe/gs.exeaside before writing the new one (Windows blocks overwriting a running program, but allows renaming it), and tells you to close other windows if it still can't.
Under the Hood
- Beta releases now publish a Homebrew formula — each canary build writes
gitswitch-betato the tap, which is what makes the Homebrew channel switch possible. - Shell-hook plumbing is out of the way —
recordandrecommendstill work but no longer clutter--helpand tab completion. - Every screen is tested at every size — the test suite renders each screen from 200×60 down to 44×12 and fails on overflow or layout shift (
GS_PREVIEW=<file> go test ./internal/tui -run TestPreviewScreenswrites a contact sheet to look at).
Full Changelog: v0.5.0...v0.6.0