GoTab is a keyboard-first window switcher for macOS — built from scratch in Go, with a thin AppKit shell.
1.0. GoTab switches windows end to end and ships as a signed universal
.app — menu-bar surface, a one-time permission prompt on first run, summon
latency measured at ~15 ms (well inside the 100 ms budget). Proven on the
maintainer's Mac; broader hardware coverage and full VoiceOver support land in point
releases. File what you find.
Hold ⌥, tap ⇥, and cycle through your windows in most-recently-used order — with a live thumbnail for each one. Release to switch. It is the switcher macOS never shipped, written as a native Go program rather than a scripting hack.
Every one of these was measured, not guessed — the numbers live in the project's DECISIONS log.
Summon, cycle, and commit without the mouse. The hotkey callback lands in about 3 ms of a real keypress.
ScreenCaptureKit previews, captured in the background and evicted by a fixed-capacity LRU. No leaked bitmaps.
A window on another Space is still in the list — and picking it switches to that Space and raises the real window.
Only an attention decision or a structural repair may reorder the list. A title change never moves a window.
All the logic is pure Go with a zero-allocation hot path; cgo and AppKit are a thin, humble shell at the edge.
The thumbnail cache is bounded and that bound is a number. macOS reclaims the rest; nothing grows without limit.
macOS 12 or newer. The one-liner needs nothing else; building from source needs Go and the Xcode command line tools.
# download the latest signed release, verify it, install to /Applications
curl -fsSL https://elgx.me/gotab/install.sh | bash
Re-run to upgrade; … | bash -s -- --uninstall removes it. The bundle is
ad-hoc signed, not notarized, so the script strips the download quarantine — the same
trust you extend by piping it to bash. Set GOTAB_KEEP_QUARANTINE=1
to keep it and use right-click → Open instead.
# or build it yourself
git clone https://github.com/Moustafa-Elgammal/gotab
cd gotab
./scripts/install.sh
Two permissions, once:
GoTab asks for each when it first needs it and picks the grant up without a relaunch.
Updates are check-only: gotab -check-update tells you a newer build exists;
you download it yourself.
GoTab has its own bundle ID and inherits nothing from any existing install — no preference migration, no license continuity, no borrowed code. A complete macOS window switcher is years of reverse-engineering undocumented platform behaviour, so the conclusions that cost the most to discover are written down in PLATFORM-LESSONS.md — every entry a platform fact, on its own terms.
GoTab is inspired by AltTab
(lwouis/alt-tab-macos) — the idea that macOS deserves a fast, preview-driven
window switcher, and the proof that it can be done well. AltTab is the reference point this
project measures itself against and the reason the idea was worth pursuing.
GoTab shares none of AltTab's code. It is an independent implementation in Go, and any resemblance is in the goal, not the source. Both projects are released under the GNU General Public License v3.