diff options
| author | 2026-04-17 10:53:47 +0100 | |
|---|---|---|
| committer | 2026-04-17 10:53:47 +0100 | |
| commit | b4e68789513c657c4c584e08c7051756c796126b (patch) | |
| tree | c8a7013674df9c8f81ccd90aae62c2f224e86537 | |
| parent | d5c75110e88a0f57bf2e39bff46749ebf9786f4c (diff) | |
| download | dotfiles-b4e68789513c657c4c584e08c7051756c796126b.tar.gz dotfiles-b4e68789513c657c4c584e08c7051756c796126b.tar.bz2 dotfiles-b4e68789513c657c4c584e08c7051756c796126b.zip | |
feat: add keybinds and compact UI for zellij
Keybindings (all in shared_except locked):
- Alt+t: new tab, Alt+[/]: cycle tabs
- Alt+w: zoom/fullscreen toggle (like tmux prefix+z)
- Alt+x: close focused pane (like tmux prefix+x)
- Alt+e: edit scrollback in $EDITOR (opens in nvim)
- Alt+-/=: quick pane resize without entering resize mode
UI options:
- pane_frames false: hide pane borders for cleaner look
- default_layout compact: single bottom status bar, no top bar
| -rw-r--r-- | home/.config/zellij/config.kdl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/home/.config/zellij/config.kdl b/home/.config/zellij/config.kdl index 0a1f6a6..f532c99 100644 --- a/home/.config/zellij/config.kdl +++ b/home/.config/zellij/config.kdl @@ -17,6 +17,10 @@ attach_to_session true show_startup_tips false show_release_notes false +// Clean UI: no pane borders, compact single-line status bar +pane_frames false +default_layout "compact" + // Custom keybindings (merged with defaults) keybinds { shared_except "locked" { @@ -31,6 +35,20 @@ keybinds { bind "Alt 8" { GoToTab 8; } bind "Alt 9" { GoToTab 9; } + // Tab management + bind "Alt t" { NewTab; } + bind "Alt [" { GoToPreviousTab; } + bind "Alt ]" { GoToNextTab; } + + // Pane management + bind "Alt w" { ToggleFocusFullscreen; } + bind "Alt x" { CloseFocus; } + bind "Alt e" { EditScrollback; } + + // Quick resize without entering resize mode + bind "Alt -" { Resize "Decrease"; } + bind "Alt =" { Resize "Increase"; } + // Seamless vim/zellij pane navigation (requires smart-splits.nvim) bind "Ctrl h" { MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.3.0/vim-zellij-navigator.wasm" { |
