-// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
keybinds {
normal {
// uncomment this and adjust key if using copy_on_select=false
}
resize {
bind "Ctrl n" { SwitchToMode "Normal"; }
- bind "h" "Left" { Resize "Left"; }
- bind "j" "Down" { Resize "Down"; }
- bind "k" "Up" { Resize "Up"; }
- bind "l" "Right" { Resize "Right"; }
+ bind "h" "Left" { Resize "Increase Left"; }
+ bind "j" "Down" { Resize "Increase Down"; }
+ bind "k" "Up" { Resize "Increase Up"; }
+ bind "l" "Right" { Resize "Increase Right"; }
+ bind "H" { Resize "Decrease Left"; }
+ bind "J" { Resize "Decrease Down"; }
+ bind "K" { Resize "Decrease Up"; }
+ bind "L" { Resize "Decrease Right"; }
bind "=" "+" { Resize "Increase"; }
bind "-" { Resize "Decrease"; }
}
bind "w" { ToggleFloatingPanes; SwitchToMode "Normal"; }
bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "Normal"; }
bind "c" { SwitchToMode "RenamePane"; PaneNameInput 0;}
+ bind "i" { TogglePanePinned; SwitchToMode "Normal"; }
}
move {
bind "Ctrl h" { SwitchToMode "Normal"; }
bind "n" "Tab" { MovePane; }
+ bind "p" { MovePaneBackwards; }
bind "h" "Left" { MovePane "Left"; }
bind "j" "Down" { MovePane "Down"; }
bind "k" "Up" { MovePane "Up"; }
bind "n" { NewTab; SwitchToMode "Normal"; }
bind "x" { CloseTab; SwitchToMode "Normal"; }
bind "s" { ToggleActiveSyncTab; SwitchToMode "Normal"; }
+ bind "b" { BreakPane; SwitchToMode "Normal"; }
+ bind "]" { BreakPaneRight; SwitchToMode "Normal"; }
+ bind "[" { BreakPaneLeft; SwitchToMode "Normal"; }
bind "1" { GoToTab 1; SwitchToMode "Normal"; }
bind "2" { GoToTab 2; SwitchToMode "Normal"; }
bind "3" { GoToTab 3; SwitchToMode "Normal"; }
bind "Ctrl o" { SwitchToMode "Normal"; }
bind "Ctrl s" { SwitchToMode "Scroll"; }
bind "d" { Detach; }
+ bind "w" {
+ LaunchOrFocusPlugin "session-manager" {
+ floating true
+ move_to_focused_tab true
+ };
+ SwitchToMode "Normal"
+ }
+ bind "c" {
+ LaunchOrFocusPlugin "configuration" {
+ floating true
+ move_to_focused_tab true
+ };
+ SwitchToMode "Normal"
+ }
+ bind "p" {
+ LaunchOrFocusPlugin "plugin-manager" {
+ floating true
+ move_to_focused_tab true
+ };
+ SwitchToMode "Normal"
+ }
+ bind "a" {
+ LaunchOrFocusPlugin "zellij:about" {
+ floating true
+ move_to_focused_tab true
+ };
+ SwitchToMode "Normal"
+ }
}
tmux {
+ bind "Ctrl b" { Write 2; SwitchToMode "locked"; }
+
+ bind "Ctrl l" { GoToNextTab; SwitchToMode "locked"; }
+ bind "Ctrl h" { GoToPreviousTab; SwitchToMode "locked"; }
+
bind "[" { SwitchToMode "Scroll"; }
- bind "Ctrl b" { Write 2; SwitchToMode "Normal"; }
- bind "\"" { NewPane "Down"; SwitchToMode "Normal"; }
- bind "%" { NewPane "Right"; SwitchToMode "Normal"; }
- bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
- bind "c" { NewTab; SwitchToMode "Normal"; }
+
+ bind "-" { NewPane "Down"; SwitchToMode "locked"; }
+ bind "|" { NewPane "Right"; SwitchToMode "locked"; }
+
+ bind "z" { ToggleFocusFullscreen; SwitchToMode "locked"; }
+
+ bind "c" { NewTab; SwitchToMode "locked"; }
bind "," { SwitchToMode "RenameTab"; }
- bind "p" { GoToPreviousTab; SwitchToMode "Normal"; }
- bind "n" { GoToNextTab; SwitchToMode "Normal"; }
- bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; }
- bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; }
- bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; }
- bind "Up" { MoveFocus "Up"; 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 "p" { GoToPreviousTab; SwitchToMode "locked"; }
+ bind "n" { GoToNextTab; SwitchToMode "locked"; }
+ bind "Left" { MoveFocus "Left"; SwitchToMode "locked"; }
+ bind "Right" { MoveFocus "Right"; SwitchToMode "locked"; }
+ bind "Down" { MoveFocus "Down"; SwitchToMode "locked"; }
+ bind "Up" { MoveFocus "Up"; SwitchToMode "locked"; }
+ bind "h" { MoveFocus "Left"; SwitchToMode "locked"; }
+ bind "l" { MoveFocus "Right"; SwitchToMode "locked"; }
+ bind "j" { MoveFocus "Down"; SwitchToMode "locked"; }
+ bind "k" { MoveFocus "Up"; SwitchToMode "locked"; }
bind "o" { FocusNextPane; }
bind "d" { Detach; }
+ bind "Space" { NextSwapLayout; }
+ bind "x" { CloseFocus; SwitchToMode "locked"; }
}
shared_except "locked" {
bind "Ctrl g" { SwitchToMode "Locked"; }
+ bind "Alt g" { Write 7; }
bind "Ctrl q" { Quit; }
+ bind "Alt f" { ToggleFloatingPanes; }
bind "Alt n" { NewPane; }
+ bind "Alt i" { MoveTab "Left"; }
+ bind "Alt o" { MoveTab "Right"; }
bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
bind "Alt j" "Alt Down" { MoveFocus "Down"; }
bind "Alt k" "Alt Up" { MoveFocus "Up"; }
bind "Alt =" "Alt +" { Resize "Increase"; }
bind "Alt -" { Resize "Decrease"; }
+ bind "Alt [" { PreviousSwapLayout; }
+ bind "Alt ]" { NextSwapLayout; }
}
shared_except "normal" "locked" {
- bind "Enter" "Space" "Esc" { SwitchToMode "Normal"; }
+ bind "Enter" "Esc" { SwitchToMode "locked"; }
}
shared_except "pane" "locked" {
bind "Ctrl p" { SwitchToMode "Pane"; }
shared_except "move" "locked" {
bind "Ctrl h" { SwitchToMode "Move"; }
}
- shared_except "tmux" "locked" {
+ shared_except "tmux" {
bind "Ctrl b" { SwitchToMode "Tmux"; }
}
}
+// Plugin aliases - can be used to change the implementation of Zellij
+// changing these requires a restart to take effect
plugins {
- tab-bar { path "tab-bar"; }
- status-bar { path "status-bar"; }
- strider { path "strider"; }
- compact-bar { path "compact-bar"; }
+ tab-bar location="zellij:tab-bar"
+ status-bar location="zellij:status-bar"
+ strider location="zellij: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 "/"
+ }
+ configuration location="zellij:configuration"
+ plugin-manager location="zellij:plugin-manager"
+ about location="zellij:about"
+}
+
+// Plugins to load in the background when a new session starts
+load_plugins {
+ // "file:/path/to/my-plugin.wasm"
+ // "https://example.com/my-plugin.wasm"
}
// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
// eg. when terminal window with an active zellij session is closed
+// (Requires restart)
// Options:
// - detach (Default)
// - quit
//
// default_shell "fish"
+// Choose the path to override cwd that zellij will use for opening new panes
+//
+// default_cwd ""
+
// Toggle between having pane frames around the panes
// Options:
// - true (default)
// - false
//
-// pane_frames true
+pane_frames false
+
+// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible
+// Options:
+// - true (default)
+// - false
+//
+// auto_layout true
+
+// Whether sessions should be serialized to the cache folder (including their tabs/panes, cwds and running commands) so that they can later be resurrected
+// (Requires restart)
+// Options:
+// - true (default)
+// - false
+//
+session_serialization false
+
+// Whether pane viewports are serialized along with the session, default is false
+// (Requires restart)
+// Options:
+// - true
+// - false (default)
+//
+// serialize_pane_viewport true
+
+// Scrollback lines to serialize along with the pane viewport when serializing sessions, 0
+// defaults to the scrollback size. If this number is higher than the scrollback size, it will
+// also default to the scrollback size. This does nothing if `serialize_pane_viewport` is not true.
+// (Requires restart)
+//
+// scrollback_lines_to_serialize 10000
// Define color themes for Zellij
// For more examples, see: https://github.com/zellij-org/zellij/tree/main/example/themes
// Choose the theme that is specified in the themes section.
// Default: default
//
-// theme "default"
+theme "nord"
// The name of the default layout to load on startup
// Default: "default"
+// (Requires restart)
//
-// default_layout "compact"
+default_layout "compact"
// Choose the mode that zellij uses when starting up.
// Default: normal
//
-// default_mode "locked"
+default_mode "locked"
// Toggle enabling the mouse mode.
// On certain configurations, or terminals this could
// potentially interfere with copying text.
+// (Requires restart)
// Options:
// - true (default)
// - 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.
+// (Requires restart)
// Valid values: positive integers
// Default value: 10000
//
// When attaching to an existing session with other users,
// should the session be mirrored (true)
// or should each user have their own cursor (false)
+// (Requires restart)
// Default: false
//
// mirror_session true
// The folder in which Zellij will look for layouts
+// (Requires restart)
//
-// layout_dir "/path/to/my/layout_dir"
+// layout_dir "/home/sb/.config/zellij/layouts/"
// The folder in which Zellij will look for themes
+// (Requires restart)
//
// theme_dir "/path/to/my/theme_dir"
+
+// Enable or disable the rendering of styled and colored underlines (undercurl).
+// May need to be disabled for certain unsupported terminals
+// (Requires restart)
+// Default: true
+//
+// styled_underlines false
+
+// Enable or disable writing of session metadata to disk (if disabled, other sessions might not know
+// metadata info on this session)
+// (Requires restart)
+// Default: false
+//
+// disable_session_metadata true
+
+// Enable or disable support for the enhanced Kitty Keyboard Protocol (the host terminal must also support it)
+// (Requires restart)
+// Default: true (if the host terminal supports it)
+//
+// support_kitty_keyboard_protocol false
+
+// Whether to stack panes when resizing beyond a certain size
+// Default: true
+//
+// stacked_resize false
+
+// Whether to show release notes on first version run
+// Default: true
+//
+// show_release_notes false
+
+// Whether to show startup tips on session start
+// Default: true
+//
+// show_startup_tips false