From 77905c6b96b14afddc492f5b3435a26c38f89eb1 Mon Sep 17 00:00:00 2001 From: Tony Powell Date: Mon, 23 Feb 2026 15:00:04 -0500 Subject: [PATCH] Add Ctrl+f keybind to toggle pane fullscreen When working in the AI pane, it's useful to temporarily expand it to fullscreen and collapse the lazygit pane. Ctrl+f toggles between the split layout and fullscreen on the focused pane. Alt+f was avoided because zellij's defaults already bind it to toggle floating panes. Updated in sesh.sh, fish function, and README keybindings table. Co-Authored-By: Claude Opus 4.6 --- README.md | 1 + functions/sesh.fish | 1 + sesh.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/README.md b/README.md index b96303c..d323aec 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,7 @@ sesh includes built-in keybindings for switching between panes: |-----|--------| | `Alt+1` | Focus the AI pane (left) | | `Alt+2` | Focus lazygit (right) | +| `Ctrl+f` | Toggle focused pane fullscreen (collapse/expand lazygit) | | `Ctrl+q` | Detach from the session (keeps it running) | These are embedded in the session layout and won't interfere with your global Zellij config. Use `Ctrl+q` to close the window — your session stays alive in the background and you can reattach later. diff --git a/functions/sesh.fish b/functions/sesh.fish index 2e7b454..69aedd3 100644 --- a/functions/sesh.fish +++ b/functions/sesh.fish @@ -109,6 +109,7 @@ keybinds { shared { bind \"Alt 1\" { MoveFocus \"left\"; } bind \"Alt 2\" { MoveFocus \"right\"; } + bind \"Ctrl f\" { ToggleFocusFullscreen; } bind \"Ctrl q\" { Detach; } } } diff --git a/sesh.sh b/sesh.sh index cd90dd2..b1f6b38 100644 --- a/sesh.sh +++ b/sesh.sh @@ -114,6 +114,7 @@ keybinds { shared { bind "Alt 1" { MoveFocus "left"; } bind "Alt 2" { MoveFocus "right"; } + bind "Ctrl f" { ToggleFocusFullscreen; } bind "Ctrl q" { Detach; } } }