mirror of
https://github.com/ShawnPana/smux.git
synced 2026-09-14 16:04:27 +08:00
cd26d2d87b
Teach toggle-fullscreen a second mode, 'exit', that only performs the un-fullscreen branch and never breaks a pane out. Bind Option+Escape (M-Escape) to that mode so the key is a pure "leave fullscreen if you're in one" — no-op on a pane that isn't currently fullscreened, no risk of surprising the user into fullscreen. Both keys also now call smart-layout on the pane's newly-joined window after join-pane, so returning a pane to a two-pane layout reshapes into whichever tiling best fits the window shape. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>