keybinds clear-defaults=true { normal { bind "Ctrl g" { SwitchToMode "locked"; } bind "Ctrl p" { SwitchToMode "pane"; } bind "Ctrl n" { SwitchToMode "resize"; } bind "Ctrl t" { SwitchToMode "tab"; } bind "Ctrl s" { SwitchToMode "scroll"; } bind "Ctrl o" { SwitchToMode "session"; } bind "Ctrl h" { SwitchToMode "move"; } bind "Ctrl a" { SwitchToMode "tmux"; } bind "Ctrl q" { Quit; } bind "Alt n" { NewPane; } bind "Alt h" { MoveFocusOrTab "Left"; } bind "Alt l" { MoveFocusOrTab "Right"; } bind "Alt j" { MoveFocus "Down"; } bind "Alt k" { MoveFocus "Up"; } bind "Alt [" { FocusPreviousPane; } bind "Alt ]" { FocusNextPane; } bind "Alt =" { Resize "Increase"; } bind "Alt +" { Resize "Increase"; } bind "Alt -" { Resize "Decrease"; } } locked { bind "Ctrl g" { SwitchToMode "normal"; } } pane { bind "Ctrl g" { SwitchToMode "locked"; } bind "Ctrl n" { SwitchToMode "resize"; } bind "Ctrl t" { SwitchToMode "tab"; } bind "Ctrl p" "Enter" "Space" "Esc" { SwitchToMode "normal"; } bind "Ctrl s" { SwitchToMode "scroll"; } bind "Ctrl o" { SwitchToMode "session"; } bind "Ctrl h" { SwitchToMode "move"; } bind "Ctrl b" { SwitchToMode "tmux"; } bind "Ctrl q" { Quit; } bind "h" "Left" { MoveFocus "Left"; } bind "l" "Right" { MoveFocus "Right"; } bind "j" "Down" { MoveFocus "Down"; } bind "k" "Up" { MoveFocus "Up"; } bind "p" { SwitchFocus; } bind "n" { NewPane; SwitchToMode "normal"; } bind "d" { NewPane "Down"; SwitchToMode "normal"; } bind "r" { NewPane "Right"; SwitchToMode "normal"; } bind "x" { CloseFocus; SwitchToMode "normal"; } bind "f" { ToggleFocusFullscreen; SwitchToMode "normal"; } bind "z" { TogglePaneFrames; SwitchToMode "normal"; } bind "w" { ToggleFloatingPanes; SwitchToMode "normal"; } bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "normal"; } bind "Alt n" { NewPane; } bind "Alt h" { MoveFocus "Left"; } bind "Alt l" { MoveFocus "Right"; } bind "Alt j" { MoveFocus "Down"; } bind "Alt k" { MoveFocus "Up"; } bind "Alt [" { FocusPreviousPane; } bind "Alt ]" { FocusNextPane; } bind "Alt =" { Resize "Increase"; } bind "Alt +" { Resize "Increase"; } bind "Alt -" { Resize "Decrease"; } bind "c" { SwitchToMode "RenamePane"; PaneNameInput 0; } } tab { bind "Ctrl g" { SwitchToMode "locked"; } bind "Ctrl p" { SwitchToMode "pane"; } bind "Ctrl n" { SwitchToMode "resize"; } bind "Ctrl t" "Enter" "Space" "Esc" { SwitchToMode "normal"; } bind "Ctrl s" { SwitchToMode "scroll"; } bind "Ctrl h" { SwitchToMode "move"; } bind "Ctrl b" { SwitchToMode "tmux"; } bind "Ctrl o" { SwitchToMode "session"; } bind "r" { SwitchToMode "RenameTab"; TabNameInput 0; } bind "Ctrl q" { Quit; } bind "h" "Left" "Up" "k" { GoToPreviousTab; } bind "l" "Right" "Down" "j" { GoToNextTab; } bind "n" { NewTab; SwitchToMode "normal"; } bind "x" { CloseTab; SwitchToMode "normal"; } bind "s" { ToggleActiveSyncTab; SwitchToMode "normal"; } bind "1" { GoToTab 1; SwitchToMode "normal"; } bind "2" { GoToTab 2; SwitchToMode "normal"; } bind "3" { GoToTab 3; SwitchToMode "normal"; } bind "4" { GoToTab 4; SwitchToMode "normal"; } bind "5" { GoToTab 5; SwitchToMode "normal"; } bind "6" { GoToTab 6; SwitchToMode "normal"; } bind "7" { GoToTab 7; SwitchToMode "normal"; } bind "8" { GoToTab 8; SwitchToMode "normal"; } bind "9" { GoToTab 9; SwitchToMode "normal"; } bind "Tab" { ToggleTab; } bind "Alt n" { NewPane; } bind "Alt h" { MoveFocus "Left"; } bind "Alt l" { MoveFocus "Right"; } bind "Alt j" { MoveFocus "Down"; } bind "Alt k" { MoveFocus "Up"; } bind "Alt [" { FocusPreviousPane; } bind "Alt ]" { FocusNextPane; } bind "Alt =" { Resize "Increase"; } bind "Alt +" { Resize "Increase"; } bind "Alt -" { Resize "Decrease"; } } resize { bind "Ctrl g" { SwitchToMode "locked"; } bind "Ctrl p" { SwitchToMode "pane"; } bind "Ctrl t" { SwitchToMode "tab"; } bind "Ctrl n" "Enter" "Space" "Esc" { SwitchToMode "normal"; } bind "Ctrl s" { SwitchToMode "scroll"; } bind "Ctrl o" { SwitchToMode "session"; } bind "Ctrl h" { SwitchToMode "move"; } bind "Ctrl b" { SwitchToMode "tmux"; } bind "Ctrl q" { Quit; } bind "h" "Left" { Resize "Left"; } bind "j" "Down" { Resize "Down"; } bind "k" "Up" { Resize "Up"; } bind "l" "Right" { Resize "Right"; } bind "=" { Resize "Increase"; } bind "+" { Resize "Increase"; } bind "-" { Resize "Decrease"; } bind "Alt n" { NewPane; } bind "Alt h" { MoveFocus "Left"; } bind "Alt l" { MoveFocus "Right"; } bind "Alt j" { MoveFocus "Down"; } bind "Alt k" { MoveFocus "Up"; } bind "Alt [" { FocusPreviousPane; } bind "Alt ]" { FocusNextPane; } bind "Alt =" { Resize "Increase"; } bind "Alt +" { Resize "Increase"; } bind "Alt -" { Resize "Decrease"; } } move { bind "Ctrl g" { SwitchToMode "locked"; } bind "Ctrl p" { SwitchToMode "pane"; } bind "Ctrl t" { SwitchToMode "tab"; } bind "Ctrl n" { SwitchToMode "resize"; } bind "Ctrl h" "Enter" "Space" "Esc" { SwitchToMode "normal"; } bind "Ctrl s" { SwitchToMode "scroll"; } bind "Ctrl o" { SwitchToMode "session"; } bind "Ctrl q" { Quit; } bind "n" "Tab" { MovePane; } bind "h" "Left" { MovePane "Left"; } bind "j" "Down" { MovePane "Down"; } bind "k" "Up" { MovePane "Up"; } bind "l" "Right" { MovePane "Right"; } bind "Alt n" { NewPane; } bind "Alt h" { MoveFocus "Left"; } bind "Alt l" { MoveFocus "Right"; } bind "Alt j" { MoveFocus "Down"; } bind "Alt k" { MoveFocus "Up"; } bind "Alt [" { FocusPreviousPane; } bind "Alt ]" { FocusNextPane; } bind "Alt =" { Resize "Increase"; } bind "Alt +" { Resize "Increase"; } bind "Alt -" { Resize "Decrease"; } } scroll { bind "Ctrl s" "Space" "Enter" "Esc" { SwitchToMode "normal"; } bind "Ctrl t" { SwitchToMode "tab"; } bind "Ctrl g" { SwitchToMode "locked"; } bind "Ctrl p" { SwitchToMode "pane"; } bind "Ctrl h" { SwitchToMode "move"; } bind "Ctrl b" { SwitchToMode "tmux"; } bind "Ctrl o" { SwitchToMode "session"; } bind "Ctrl n" { SwitchToMode "resize"; } bind "Ctrl c" { ScrollToBottom; SwitchToMode "normal"; } bind "Ctrl q" { Quit; } bind "j" "Down" { ScrollDown; } bind "k" "Up" { ScrollUp; } bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; } bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; } bind "d" { HalfPageScrollDown; } bind "u" { HalfPageScrollUp; } bind "e" { EditScrollback; SwitchToMode "normal"; } bind "Alt n" { NewPane; } bind "Alt h" { MoveFocus "Left"; } bind "Alt l" { MoveFocus "Right"; } bind "Alt j" { MoveFocus "Down"; } bind "Alt k" { MoveFocus "Up"; } bind "Alt [" { FocusPreviousPane; } bind "Alt ]" { FocusNextPane; } bind "Alt =" { Resize "Increase"; } bind "Alt +" { Resize "Increase"; } bind "Alt -" { Resize "Decrease"; } } session { bind "Ctrl g" { SwitchToMode "locked"; } bind "Ctrl n" { SwitchToMode "resize"; } bind "Ctrl p" { SwitchToMode "pane"; } bind "Ctrl h" { SwitchToMode "move"; } bind "Ctrl b" { SwitchToMode "tmux"; } bind "Ctrl t" { SwitchToMode "tab"; } bind "Ctrl o" "Enter" "Space" "Esc" { SwitchToMode "normal"; } bind "Ctrl s" { SwitchToMode "scroll"; } bind "Ctrl q" { Quit; } bind "d" { Detach; } bind "w" { LaunchOrFocusPlugin "session-manager" { floating true move_to_focused_tab true }; SwitchToMode "Normal" } bind "Alt n" { NewPane; } bind "Alt h" { MoveFocus "Left"; } bind "Alt l" { MoveFocus "Right"; } bind "Alt j" { MoveFocus "Down"; } bind "Alt k" { MoveFocus "Up"; } bind "Alt [" { FocusPreviousPane; } bind "Alt ]" { FocusNextPane; } bind "Alt =" { Resize "Increase"; } bind "Alt +" { Resize "Increase"; } bind "Alt -" { Resize "Decrease"; } } RenameTab { bind "Enter" "Ctrl c" "Esc" { SwitchToMode "normal"; } bind "Esc" { TabNameInput 27; SwitchToMode "tab"; } bind "Alt n" { NewPane; } bind "Alt h" { MoveFocus "Left"; } bind "Alt l" { MoveFocus "Right"; } bind "Alt j" { MoveFocus "Down"; } bind "Alt k" { MoveFocus "Up"; } bind "Alt [" { FocusPreviousPane; } bind "Alt ]" { FocusNextPane; } bind "Alt =" { Resize "Increase"; } bind "Alt +" { Resize "Increase"; } bind "Alt -" { Resize "Decrease"; } } RenamePane { bind "Enter" "Ctrl c" "Esc" { SwitchToMode "normal"; } bind "Esc" { PaneNameInput 27; SwitchToMode "pane"; } bind "Alt n" { NewPane; } bind "Alt h" { MoveFocus "Left"; } bind "Alt l" { MoveFocus "Right"; } bind "Alt j" { MoveFocus "Down"; } bind "Alt k" { MoveFocus "Up"; } bind "Alt [" { FocusPreviousPane; } bind "Alt ]" { FocusNextPane; } bind "Alt =" { Resize "Increase"; } bind "Alt +" { Resize "Increase"; } bind "Alt -" { Resize "Decrease"; } } tmux { bind "Ctrl g" { SwitchToMode "locked"; } bind "Esc" { EditScrollback; SwitchToMode "normal"; } bind "Ctrl n" { SwitchToMode "resize"; } bind "Ctrl p" { SwitchToMode "pane"; } bind "Ctrl h" { SwitchToMode "move"; } bind "Ctrl t" { SwitchToMode "tab"; } bind "Ctrl o" "Enter" "Space" "Esc" { SwitchToMode "normal"; } bind "Ctrl s" { SwitchToMode "scroll"; } bind "Ctrl q" { Quit; } bind "-" { NewPane "Down"; SwitchToMode "normal"; } bind "|" { NewPane "Right"; SwitchToMode "normal"; } bind "z" { ToggleFocusFullscreen; SwitchToMode "normal"; } bind "c" { NewTab; SwitchToMode "normal"; } bind "," { SwitchToMode "RenameTab"; TabNameInput 0; } bind "Ctrl h" { GoToPreviousTab; SwitchToMode "normal"; } bind "Ctrl l" { GoToNextTab; SwitchToMode "normal"; } bind "h" { MoveFocus "Left"; SwitchToMode "normal"; } bind "l" { MoveFocus "Right"; SwitchToMode "normal"; } bind "j" { MoveFocus "Down"; SwitchToMode "normal"; } bind "k" { MoveFocus "Up"; SwitchToMode "normal"; } bind "Alt n" { NewPane; } bind "Alt h" { MoveFocus "Left"; } bind "Alt l" { MoveFocus "Right"; } bind "Alt j" { MoveFocus "Down"; } bind "Alt k" { MoveFocus "Up"; } bind "Alt [" { PreviousSwapLayout; } bind "Alt ]" { NextSwapLayout; } bind "Alt =" { Resize "Increase"; } bind "Alt +" { Resize "Increase"; } bind "Alt -" { Resize "Decrease"; } bind "Ctrl a" { Write 1; SwitchToMode "normal"; } bind "d" { Detach; } bind "e" { EditScrollback; SwitchToMode "normal"; } bind "y" { ToggleActiveSyncTab; SwitchToMode "normal"; } bind "r" { SwitchToMode "RenamePane"; PaneNameInput 0; } } } // Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP // eg. when terminal window with an active zellij session is closed // Options: // - detach (Default) // - quit // // on_force_close "quit" // Send a request for a simplified ui (without arrow fonts) to plugins // Options: // - true // - false (Default) // // simplified_ui true // Choose the path to the default shell that zellij will use for opening new panes // Default: $SHELL // // default_shell "fish" // Toggle between having pane frames around the panes // Options: // - true (default) // - false // pane_frames false session_serialization false // Choose the theme that is specified in the themes section. // Default: default // // theme "default" // The name of the default layout to load on startup // Default: "default" // // default_layout "compact" // Choose the mode that zellij uses when starting up. // Default: normal // // default_mode "locked" // Toggle enabling the mouse mode. // On certain configurations, or terminals this could // potentially interfere with copying text. // Options: // - true (default) // - false // // mouse_mode false // Configure the scroll back buffer size // This is the number of lines zellij stores for each pane in the scroll back // buffer. Excess number of lines are discarded in a FIFO fashion. // Valid values: positive integers // Default value: 10000 // // scroll_buffer_size 10000 // Provide a command to execute when copying text. The text will be piped to // the stdin of the program to perform the copy. This can be used with // terminal emulators which do not support the OSC 52 ANSI control sequence // that will be used by default if this option is not set. // Examples: // // copy_command "xclip -selection clipboard" // x11 // copy_command "wl-copy" // wayland // copy_command "pbcopy" // osx // Choose the destination for copied text // Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard. // Does not apply when using copy_command. // Options: // - system (default) // - primary // // copy_clipboard "primary" // Enable or disable automatic copy (and clear) of selection when releasing mouse // Default: true // // copy_on_select false // Path to the default editor to use to edit pane scrollbuffer // Default: $EDITOR or $VISUAL // // scrollback_editor "/usr/bin/vim" // When attaching to an existing session with other users, // should the session be mirrored (true) // or should each user have their own cursor (false) // Default: false // // mirror_session true // The folder in which Zellij will look for layouts // // layout_dir /path/to/my/layout_dir // The folder in which Zellij will look for themes // // theme_dir "/path/to/my/theme_dir" plugins { tab-bar { path "tab-bar"; } status-bar { path "status-bar"; } strider { path "strider"; } compact-bar location="zellij:compact-bar" session-manager location="zellij:session-manager" welcome-screen location="zellij:session-manager" { welcome_screen true } filepicker location="zellij:strider" { cwd "/" } }