Skip to content

tmux status-bar touch controls for mobile - #10

Merged
oz6un merged 1 commit into
mainfrom
feat/tmux-mobile-touch-controls
Jul 14, 2026
Merged

tmux status-bar touch controls for mobile#10
oz6un merged 1 commit into
mainfrom
feat/tmux-mobile-touch-controls

Conversation

@oz6un

@oz6un oz6un commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Why

Managing tmux windows from a phone was awkward. The research-backed reasons the obvious fixes don't work: Ctrl-b/Alt modifiers transmit unreliably on mobile terminals, and startup-command tricks break once an agent runs in the pane (no shell). The one reliable mobile input is a status-bar tap — tmux handles those itself, whatever the pane is running.

What

The status bar becomes a touch panel:

  • tap a window name → switch (tmux default, preserved)
  • tap [+] → new window (in current dir)
  • tap [x] → close current window (y/n confirm, so a mis-tap can't kill a running agent)

Implemented with range=user status regions + a MouseDown1Status dispatch whose else-branch is the stock select-window, so keyboard/desktop behavior (prefix+c/&/n/p) is untouched. Alt bindings from earlier iterations were dropped as unreliable. README daily-use updated.

Verified

Config loads clean on the box (tmux 3.4, source-file no errors); default window-tap-switch preserved; no personal residue; functionally confirmed on-device by tapping the three gestures; box brought to exact parity with the repo. make check green.

🤖 Generated with Claude Code

Managing tmux windows on a phone was the friction point: modifier keys
(Ctrl-b, Alt) transmit unreliably on mobile terminals, and startup-command
tricks fail once an agent is running in the pane (no shell to type into). The
one input that always works is a status-bar tap — tmux handles those itself,
regardless of pane contents.

So the status bar is now a touch control panel: tap a window name to switch,
tap [+] for a new window, tap [x] to close one (y/n confirm so a stray tap
can't kill a running agent). Implemented via range=user status regions + a
MouseDown1Status dispatch whose else-branch is the default select-window, so
desktop/keyboard behavior (prefix+c / & / n / p) is unchanged. Verified
functionally on-device; box brought to parity.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@oz6un
oz6un merged commit 51a7446 into main Jul 14, 2026
1 check passed
@oz6un
oz6un deleted the feat/tmux-mobile-touch-controls branch July 14, 2026 07:57
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.

1 participant