chore: update zellij default config
This commit is contained in:
@@ -1,333 +1,248 @@
|
|||||||
//
|
// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
|
||||||
// THIS FILE WAS AUTOGENERATED BY ZELLIJ, THE PREVIOUS FILE AT THIS LOCATION WAS COPIED TO: /home/paoda/.config/zellij/config.kdl.bak
|
keybinds {
|
||||||
//
|
normal {
|
||||||
|
// uncomment this and adjust key if using copy_on_select=false
|
||||||
keybinds clear-defaults=true {
|
// bind "Alt c" { Copy; }
|
||||||
|
}
|
||||||
locked {
|
locked {
|
||||||
bind "Ctrl g" { SwitchToMode "normal"; }
|
bind "Ctrl g" { SwitchToMode "Normal"; }
|
||||||
}
|
|
||||||
pane {
|
|
||||||
bind "left" { MoveFocus "left"; }
|
|
||||||
bind "down" { MoveFocus "down"; }
|
|
||||||
bind "up" { MoveFocus "up"; }
|
|
||||||
bind "right" { MoveFocus "right"; }
|
|
||||||
bind "c" { SwitchToMode "renamepane"; PaneNameInput 0; }
|
|
||||||
bind "d" { NewPane "down"; SwitchToMode "normal"; }
|
|
||||||
bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "normal"; }
|
|
||||||
bind "f" { ToggleFocusFullscreen; SwitchToMode "normal"; }
|
|
||||||
bind "h" { MoveFocus "left"; }
|
|
||||||
bind "i" { TogglePanePinned; SwitchToMode "normal"; }
|
|
||||||
bind "j" { MoveFocus "down"; }
|
|
||||||
bind "k" { MoveFocus "up"; }
|
|
||||||
bind "l" { MoveFocus "right"; }
|
|
||||||
bind "n" { NewPane; SwitchToMode "normal"; }
|
|
||||||
bind "p" { SwitchFocus; }
|
|
||||||
bind "Ctrl p" { SwitchToMode "normal"; }
|
|
||||||
bind "r" { NewPane "right"; SwitchToMode "normal"; }
|
|
||||||
bind "w" { ToggleFloatingPanes; SwitchToMode "normal"; }
|
|
||||||
bind "z" { TogglePaneFrames; SwitchToMode "normal"; }
|
|
||||||
}
|
|
||||||
tab {
|
|
||||||
bind "left" { GoToPreviousTab; }
|
|
||||||
bind "down" { GoToNextTab; }
|
|
||||||
bind "up" { GoToPreviousTab; }
|
|
||||||
bind "right" { GoToNextTab; }
|
|
||||||
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 "[" { BreakPaneLeft; SwitchToMode "normal"; }
|
|
||||||
bind "]" { BreakPaneRight; SwitchToMode "normal"; }
|
|
||||||
bind "b" { BreakPane; SwitchToMode "normal"; }
|
|
||||||
bind "h" { GoToPreviousTab; }
|
|
||||||
bind "j" { GoToNextTab; }
|
|
||||||
bind "k" { GoToPreviousTab; }
|
|
||||||
bind "l" { GoToNextTab; }
|
|
||||||
bind "n" { NewTab; SwitchToMode "normal"; }
|
|
||||||
bind "r" { SwitchToMode "renametab"; TabNameInput 0; }
|
|
||||||
bind "s" { ToggleActiveSyncTab; SwitchToMode "normal"; }
|
|
||||||
bind "Ctrl t" { SwitchToMode "normal"; }
|
|
||||||
bind "x" { CloseTab; SwitchToMode "normal"; }
|
|
||||||
bind "tab" { ToggleTab; }
|
|
||||||
}
|
}
|
||||||
resize {
|
resize {
|
||||||
bind "left" { Resize "Increase left"; }
|
bind "Ctrl n" { SwitchToMode "Normal"; }
|
||||||
bind "down" { Resize "Increase down"; }
|
bind "h" "Left" { Resize "Increase Left"; }
|
||||||
bind "up" { Resize "Increase up"; }
|
bind "j" "Down" { Resize "Increase Down"; }
|
||||||
bind "right" { Resize "Increase right"; }
|
bind "k" "Up" { Resize "Increase Up"; }
|
||||||
bind "+" { Resize "Increase"; }
|
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 "-" { Resize "Decrease"; }
|
||||||
bind "=" { Resize "Increase"; }
|
}
|
||||||
bind "H" { Resize "Decrease left"; }
|
pane {
|
||||||
bind "J" { Resize "Decrease down"; }
|
bind "Ctrl p" { SwitchToMode "Normal"; }
|
||||||
bind "K" { Resize "Decrease up"; }
|
bind "h" "Left" { MoveFocus "Left"; }
|
||||||
bind "L" { Resize "Decrease right"; }
|
bind "l" "Right" { MoveFocus "Right"; }
|
||||||
bind "h" { Resize "Increase left"; }
|
bind "j" "Down" { MoveFocus "Down"; }
|
||||||
bind "j" { Resize "Increase down"; }
|
bind "k" "Up" { MoveFocus "Up"; }
|
||||||
bind "k" { Resize "Increase up"; }
|
bind "p" { SwitchFocus; }
|
||||||
bind "l" { Resize "Increase right"; }
|
bind "n" { NewPane; SwitchToMode "Normal"; }
|
||||||
bind "Ctrl n" { SwitchToMode "normal"; }
|
bind "d" { NewPane "Down"; SwitchToMode "Normal"; }
|
||||||
|
bind "r" { NewPane "Right"; SwitchToMode "Normal"; }
|
||||||
|
bind "s" { NewPane "stacked"; 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 "c" { SwitchToMode "RenamePane"; PaneNameInput 0;}
|
||||||
|
bind "i" { TogglePanePinned; SwitchToMode "Normal"; }
|
||||||
}
|
}
|
||||||
move {
|
move {
|
||||||
bind "left" { MovePane "left"; }
|
bind "Ctrl h" { SwitchToMode "Normal"; }
|
||||||
bind "down" { MovePane "down"; }
|
bind "n" "Tab" { MovePane; }
|
||||||
bind "up" { MovePane "up"; }
|
|
||||||
bind "right" { MovePane "right"; }
|
|
||||||
bind "h" { MovePane "left"; }
|
|
||||||
bind "Ctrl h" { SwitchToMode "normal"; }
|
|
||||||
bind "j" { MovePane "down"; }
|
|
||||||
bind "k" { MovePane "up"; }
|
|
||||||
bind "l" { MovePane "right"; }
|
|
||||||
bind "n" { MovePane; }
|
|
||||||
bind "p" { MovePaneBackwards; }
|
bind "p" { MovePaneBackwards; }
|
||||||
bind "tab" { MovePane; }
|
bind "h" "Left" { MovePane "Left"; }
|
||||||
|
bind "j" "Down" { MovePane "Down"; }
|
||||||
|
bind "k" "Up" { MovePane "Up"; }
|
||||||
|
bind "l" "Right" { MovePane "Right"; }
|
||||||
|
}
|
||||||
|
tab {
|
||||||
|
bind "Ctrl t" { SwitchToMode "Normal"; }
|
||||||
|
bind "r" { SwitchToMode "RenameTab"; TabNameInput 0; }
|
||||||
|
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 "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 "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; }
|
||||||
}
|
}
|
||||||
scroll {
|
scroll {
|
||||||
bind "e" { EditScrollback; SwitchToMode "normal"; }
|
bind "Ctrl s" { SwitchToMode "Normal"; }
|
||||||
bind "s" { SwitchToMode "entersearch"; SearchInput 0; }
|
bind "e" { EditScrollback; SwitchToMode "Normal"; }
|
||||||
|
bind "s" { SwitchToMode "EnterSearch"; SearchInput 0; }
|
||||||
|
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
|
||||||
|
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; }
|
||||||
|
// uncomment this and adjust key if using copy_on_select=false
|
||||||
|
// bind "Alt c" { Copy; }
|
||||||
}
|
}
|
||||||
search {
|
search {
|
||||||
bind "c" { SearchToggleOption "CaseSensitivity"; }
|
bind "Ctrl s" { SwitchToMode "Normal"; }
|
||||||
|
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
|
||||||
|
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 "n" { Search "down"; }
|
bind "n" { Search "down"; }
|
||||||
bind "o" { SearchToggleOption "WholeWord"; }
|
|
||||||
bind "p" { Search "up"; }
|
bind "p" { Search "up"; }
|
||||||
|
bind "c" { SearchToggleOption "CaseSensitivity"; }
|
||||||
bind "w" { SearchToggleOption "Wrap"; }
|
bind "w" { SearchToggleOption "Wrap"; }
|
||||||
|
bind "o" { SearchToggleOption "WholeWord"; }
|
||||||
|
}
|
||||||
|
entersearch {
|
||||||
|
bind "Ctrl c" "Esc" { SwitchToMode "Scroll"; }
|
||||||
|
bind "Enter" { SwitchToMode "Search"; }
|
||||||
|
}
|
||||||
|
renametab {
|
||||||
|
bind "Ctrl c" { SwitchToMode "Normal"; }
|
||||||
|
bind "Esc" { UndoRenameTab; SwitchToMode "Tab"; }
|
||||||
|
}
|
||||||
|
renamepane {
|
||||||
|
bind "Ctrl c" { SwitchToMode "Normal"; }
|
||||||
|
bind "Esc" { UndoRenamePane; SwitchToMode "Pane"; }
|
||||||
}
|
}
|
||||||
session {
|
session {
|
||||||
bind "a" {
|
bind "Ctrl o" { SwitchToMode "Normal"; }
|
||||||
LaunchOrFocusPlugin "zellij:about" {
|
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
||||||
|
bind "d" { Detach; }
|
||||||
|
bind "w" {
|
||||||
|
LaunchOrFocusPlugin "session-manager" {
|
||||||
floating true
|
floating true
|
||||||
move_to_focused_tab true
|
move_to_focused_tab true
|
||||||
}
|
};
|
||||||
SwitchToMode "normal"
|
SwitchToMode "Normal"
|
||||||
}
|
}
|
||||||
bind "c" {
|
bind "c" {
|
||||||
LaunchOrFocusPlugin "configuration" {
|
LaunchOrFocusPlugin "configuration" {
|
||||||
floating true
|
floating true
|
||||||
move_to_focused_tab true
|
move_to_focused_tab true
|
||||||
|
};
|
||||||
|
SwitchToMode "Normal"
|
||||||
}
|
}
|
||||||
SwitchToMode "normal"
|
|
||||||
}
|
|
||||||
bind "Ctrl o" { SwitchToMode "normal"; }
|
|
||||||
bind "p" {
|
bind "p" {
|
||||||
LaunchOrFocusPlugin "plugin-manager" {
|
LaunchOrFocusPlugin "plugin-manager" {
|
||||||
floating true
|
floating true
|
||||||
move_to_focused_tab true
|
move_to_focused_tab true
|
||||||
|
};
|
||||||
|
SwitchToMode "Normal"
|
||||||
}
|
}
|
||||||
SwitchToMode "normal"
|
bind "a" {
|
||||||
}
|
LaunchOrFocusPlugin "zellij:about" {
|
||||||
bind "w" {
|
|
||||||
LaunchOrFocusPlugin "session-manager" {
|
|
||||||
floating true
|
floating true
|
||||||
move_to_focused_tab true
|
move_to_focused_tab true
|
||||||
|
};
|
||||||
|
SwitchToMode "Normal"
|
||||||
}
|
}
|
||||||
SwitchToMode "normal"
|
bind "s" {
|
||||||
|
LaunchOrFocusPlugin "zellij:share" {
|
||||||
|
floating true
|
||||||
|
move_to_focused_tab true
|
||||||
|
};
|
||||||
|
SwitchToMode "Normal"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
shared_except "locked" {
|
|
||||||
bind "Alt left" { MoveFocusOrTab "left"; }
|
|
||||||
bind "Alt down" { MoveFocus "down"; }
|
|
||||||
bind "Alt up" { MoveFocus "up"; }
|
|
||||||
bind "Alt right" { MoveFocusOrTab "right"; }
|
|
||||||
bind "Alt +" { Resize "Increase"; }
|
|
||||||
bind "Alt -" { Resize "Decrease"; }
|
|
||||||
bind "Alt =" { Resize "Increase"; }
|
|
||||||
bind "Alt [" { PreviousSwapLayout; }
|
|
||||||
bind "Alt ]" { NextSwapLayout; }
|
|
||||||
bind "Alt f" { ToggleFloatingPanes; }
|
|
||||||
bind "Ctrl g" { SwitchToMode "locked"; }
|
|
||||||
bind "Alt h" { MoveFocusOrTab "left"; }
|
|
||||||
bind "Alt i" { MoveTab "left"; }
|
|
||||||
bind "Alt j" { MoveFocus "down"; }
|
|
||||||
bind "Alt k" { MoveFocus "up"; }
|
|
||||||
bind "Alt l" { MoveFocusOrTab "right"; }
|
|
||||||
bind "Alt n" { NewPane; }
|
|
||||||
bind "Alt o" { MoveTab "right"; }
|
|
||||||
bind "Ctrl q" { Quit; }
|
|
||||||
}
|
|
||||||
shared_except "locked" "move" {
|
|
||||||
bind "Ctrl h" { SwitchToMode "move"; }
|
|
||||||
}
|
|
||||||
shared_except "locked" "session" {
|
|
||||||
bind "Ctrl o" { SwitchToMode "session"; }
|
|
||||||
}
|
|
||||||
shared_except "locked" "scroll" "search" "tmux" {
|
|
||||||
bind "Ctrl b" { SwitchToMode "tmux"; }
|
|
||||||
}
|
|
||||||
shared_except "locked" "scroll" "search" {
|
|
||||||
bind "Ctrl s" { SwitchToMode "scroll"; }
|
|
||||||
}
|
|
||||||
shared_except "locked" "tab" {
|
|
||||||
bind "Ctrl t" { SwitchToMode "tab"; }
|
|
||||||
}
|
|
||||||
shared_except "locked" "pane" {
|
|
||||||
bind "Ctrl p" { SwitchToMode "pane"; }
|
|
||||||
}
|
|
||||||
shared_except "locked" "resize" {
|
|
||||||
bind "Ctrl n" { SwitchToMode "resize"; }
|
|
||||||
}
|
|
||||||
shared_except "normal" "locked" "entersearch" {
|
|
||||||
bind "enter" { SwitchToMode "normal"; }
|
|
||||||
}
|
|
||||||
shared_except "normal" "locked" "entersearch" "renametab" "renamepane" {
|
|
||||||
bind "esc" { SwitchToMode "normal"; }
|
|
||||||
}
|
|
||||||
shared_among "pane" "tmux" {
|
|
||||||
bind "x" { CloseFocus; SwitchToMode "normal"; }
|
|
||||||
}
|
|
||||||
shared_among "scroll" "search" {
|
|
||||||
bind "PageDown" { PageScrollDown; }
|
|
||||||
bind "PageUp" { PageScrollUp; }
|
|
||||||
bind "left" { PageScrollUp; }
|
|
||||||
bind "down" { ScrollDown; }
|
|
||||||
bind "up" { ScrollUp; }
|
|
||||||
bind "right" { PageScrollDown; }
|
|
||||||
bind "Ctrl b" { PageScrollUp; }
|
|
||||||
bind "Ctrl c" { ScrollToBottom; SwitchToMode "normal"; }
|
|
||||||
bind "d" { HalfPageScrollDown; }
|
|
||||||
bind "Ctrl f" { PageScrollDown; }
|
|
||||||
bind "h" { PageScrollUp; }
|
|
||||||
bind "j" { ScrollDown; }
|
|
||||||
bind "k" { ScrollUp; }
|
|
||||||
bind "l" { PageScrollDown; }
|
|
||||||
bind "Ctrl s" { SwitchToMode "normal"; }
|
|
||||||
bind "u" { HalfPageScrollUp; }
|
|
||||||
}
|
|
||||||
entersearch {
|
|
||||||
bind "Ctrl c" { SwitchToMode "scroll"; }
|
|
||||||
bind "esc" { SwitchToMode "scroll"; }
|
|
||||||
bind "enter" { SwitchToMode "search"; }
|
|
||||||
}
|
|
||||||
renametab {
|
|
||||||
bind "esc" { UndoRenameTab; SwitchToMode "tab"; }
|
|
||||||
}
|
|
||||||
shared_among "renametab" "renamepane" {
|
|
||||||
bind "Ctrl c" { SwitchToMode "normal"; }
|
|
||||||
}
|
|
||||||
renamepane {
|
|
||||||
bind "esc" { UndoRenamePane; SwitchToMode "pane"; }
|
|
||||||
}
|
|
||||||
shared_among "session" "tmux" {
|
|
||||||
bind "d" { Detach; }
|
|
||||||
}
|
|
||||||
tmux {
|
tmux {
|
||||||
bind "left" { MoveFocus "left"; SwitchToMode "normal"; }
|
bind "[" { SwitchToMode "Scroll"; }
|
||||||
bind "down" { MoveFocus "down"; SwitchToMode "normal"; }
|
bind "Ctrl b" { Write 2; SwitchToMode "Normal"; }
|
||||||
bind "up" { MoveFocus "up"; SwitchToMode "normal"; }
|
bind "\"" { NewPane "Down"; SwitchToMode "Normal"; }
|
||||||
bind "right" { MoveFocus "right"; SwitchToMode "normal"; }
|
bind "%" { NewPane "Right"; SwitchToMode "Normal"; }
|
||||||
bind "space" { NextSwapLayout; }
|
bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
|
||||||
bind "\"" { NewPane "down"; SwitchToMode "normal"; }
|
bind "c" { NewTab; SwitchToMode "Normal"; }
|
||||||
bind "%" { NewPane "right"; SwitchToMode "normal"; }
|
bind "," { SwitchToMode "RenameTab"; }
|
||||||
bind "," { SwitchToMode "renametab"; }
|
bind "p" { GoToPreviousTab; SwitchToMode "Normal"; }
|
||||||
bind "[" { SwitchToMode "scroll"; }
|
bind "n" { GoToNextTab; SwitchToMode "Normal"; }
|
||||||
bind "Ctrl b" { Write 2; SwitchToMode "normal"; }
|
bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
||||||
bind "c" { NewTab; SwitchToMode "normal"; }
|
bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
||||||
bind "h" { MoveFocus "left"; SwitchToMode "normal"; }
|
bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
||||||
bind "j" { MoveFocus "down"; SwitchToMode "normal"; }
|
bind "Up" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
||||||
bind "k" { MoveFocus "up"; SwitchToMode "normal"; }
|
bind "h" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
||||||
bind "l" { MoveFocus "right"; SwitchToMode "normal"; }
|
bind "l" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
||||||
bind "n" { GoToNextTab; SwitchToMode "normal"; }
|
bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
||||||
|
bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
||||||
bind "o" { FocusNextPane; }
|
bind "o" { FocusNextPane; }
|
||||||
bind "p" { GoToPreviousTab; SwitchToMode "normal"; }
|
bind "d" { Detach; }
|
||||||
bind "z" { ToggleFocusFullscreen; SwitchToMode "normal"; }
|
bind "Space" { NextSwapLayout; }
|
||||||
|
bind "x" { CloseFocus; SwitchToMode "Normal"; }
|
||||||
|
}
|
||||||
|
shared_except "locked" {
|
||||||
|
bind "Ctrl g" { SwitchToMode "Locked"; }
|
||||||
|
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; }
|
||||||
|
bind "Alt p" { TogglePaneInGroup; }
|
||||||
|
bind "Alt Shift p" { ToggleGroupMarking; }
|
||||||
|
}
|
||||||
|
shared_except "normal" "locked" {
|
||||||
|
bind "Enter" "Esc" { SwitchToMode "Normal"; }
|
||||||
|
}
|
||||||
|
shared_except "pane" "locked" {
|
||||||
|
bind "Ctrl p" { SwitchToMode "Pane"; }
|
||||||
|
}
|
||||||
|
shared_except "resize" "locked" {
|
||||||
|
bind "Ctrl n" { SwitchToMode "Resize"; }
|
||||||
|
}
|
||||||
|
shared_except "scroll" "locked" {
|
||||||
|
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
||||||
|
}
|
||||||
|
shared_except "session" "locked" {
|
||||||
|
bind "Ctrl o" { SwitchToMode "Session"; }
|
||||||
|
}
|
||||||
|
shared_except "tab" "locked" {
|
||||||
|
bind "Ctrl t" { SwitchToMode "Tab"; }
|
||||||
|
}
|
||||||
|
shared_except "move" "locked" {
|
||||||
|
bind "Ctrl h" { SwitchToMode "Move"; }
|
||||||
|
}
|
||||||
|
shared_except "tmux" "locked" {
|
||||||
|
bind "Ctrl b" { SwitchToMode "Tmux"; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Plugin aliases - can be used to change the implementation of Zellij
|
// Plugin aliases - can be used to change the implementation of Zellij
|
||||||
// changing these requires a restart to take effect
|
// changing these requires a restart to take effect
|
||||||
plugins {
|
plugins {
|
||||||
about location="zellij:about"
|
tab-bar location="zellij:tab-bar"
|
||||||
compact-bar location="zellij:compact-bar"
|
|
||||||
configuration location="zellij:configuration"
|
|
||||||
filepicker location="zellij:strider" {
|
|
||||||
cwd "/"
|
|
||||||
}
|
|
||||||
plugin-manager location="zellij:plugin-manager"
|
|
||||||
session-manager location="zellij:session-manager"
|
|
||||||
status-bar location="zellij:status-bar"
|
status-bar location="zellij:status-bar"
|
||||||
strider location="zellij:strider"
|
strider location="zellij:strider"
|
||||||
tab-bar location="zellij:tab-bar"
|
compact-bar location="zellij:compact-bar"
|
||||||
|
session-manager location="zellij:session-manager"
|
||||||
welcome-screen location="zellij:session-manager" {
|
welcome-screen location="zellij:session-manager" {
|
||||||
welcome_screen true
|
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
|
// Plugins to load in the background when a new session starts
|
||||||
// eg. "file:/path/to/my-plugin.wasm"
|
|
||||||
// eg. "https://example.com/my-plugin.wasm"
|
|
||||||
load_plugins {
|
load_plugins {
|
||||||
|
// "file:/path/to/my-plugin.wasm"
|
||||||
|
// "https://example.com/my-plugin.wasm"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use a simplified UI without special fonts (arrow glyphs)
|
|
||||||
// Options:
|
|
||||||
// - true
|
|
||||||
// - false (Default)
|
|
||||||
//
|
|
||||||
simplified_ui true
|
|
||||||
|
|
||||||
// Choose the theme that is specified in the themes section.
|
|
||||||
// Default: default
|
|
||||||
//
|
|
||||||
// theme "dracula"
|
|
||||||
|
|
||||||
// Choose the base input mode of zellij.
|
|
||||||
// Default: normal
|
|
||||||
//
|
|
||||||
// default_mode "locked"
|
|
||||||
|
|
||||||
// Choose the path to the default shell that zellij will use for opening new panes
|
|
||||||
// Default: $SHELL
|
|
||||||
//
|
|
||||||
// default_shell "fish"
|
|
||||||
|
|
||||||
// Choose the path to override cwd that zellij will use for opening new panes
|
|
||||||
//
|
|
||||||
// default_cwd "/tmp"
|
|
||||||
|
|
||||||
// The name of the default layout to load on startup
|
|
||||||
// Default: "default"
|
|
||||||
//
|
|
||||||
// default_layout "compact"
|
|
||||||
|
|
||||||
// The folder in which Zellij will look for layouts
|
|
||||||
// (Requires restart)
|
|
||||||
//
|
|
||||||
// layout_dir "/tmp"
|
|
||||||
|
|
||||||
// The folder in which Zellij will look for themes
|
|
||||||
// (Requires restart)
|
|
||||||
//
|
|
||||||
// theme_dir "/tmp"
|
|
||||||
|
|
||||||
// Toggle enabling the mouse mode.
|
|
||||||
// On certain configurations, or terminals this could
|
|
||||||
// potentially interfere with copying text.
|
|
||||||
// Options:
|
|
||||||
// - true (default)
|
|
||||||
// - false
|
|
||||||
//
|
|
||||||
// mouse_mode false
|
|
||||||
|
|
||||||
// Toggle having pane frames around the panes
|
|
||||||
// Options:
|
|
||||||
// - true (default, enabled)
|
|
||||||
// - false
|
|
||||||
//
|
|
||||||
pane_frames false
|
|
||||||
|
|
||||||
// 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
|
|
||||||
|
|
||||||
// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
|
// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
|
||||||
// eg. when terminal window with an active zellij session is closed
|
// eg. when terminal window with an active zellij session is closed
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
@@ -337,6 +252,105 @@ pane_frames false
|
|||||||
//
|
//
|
||||||
// on_force_close "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"
|
||||||
|
|
||||||
|
// 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
|
||||||
|
|
||||||
|
// 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
|
||||||
|
// Once these themes are defined, one of them should to be selected in the "theme" section of this file
|
||||||
|
//
|
||||||
|
// themes {
|
||||||
|
// dracula {
|
||||||
|
// fg 248 248 242
|
||||||
|
// bg 40 42 54
|
||||||
|
// red 255 85 85
|
||||||
|
// green 80 250 123
|
||||||
|
// yellow 241 250 140
|
||||||
|
// blue 98 114 164
|
||||||
|
// magenta 255 121 198
|
||||||
|
// orange 255 184 108
|
||||||
|
// cyan 139 233 253
|
||||||
|
// black 0 0 0
|
||||||
|
// white 255 255 255
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// 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"
|
||||||
|
// (Requires restart)
|
||||||
|
//
|
||||||
|
// 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.
|
||||||
|
// (Requires restart)
|
||||||
|
// Options:
|
||||||
|
// - true (default)
|
||||||
|
// - false
|
||||||
|
//
|
||||||
|
// mouse_mode false
|
||||||
|
|
||||||
// Configure the scroll back buffer size
|
// Configure the scroll back buffer size
|
||||||
// This is the number of lines zellij stores for each pane in the scroll back
|
// 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.
|
// buffer. Excess number of lines are discarded in a FIFO fashion.
|
||||||
@@ -355,8 +369,6 @@ pane_frames false
|
|||||||
// copy_command "xclip -selection clipboard" // x11
|
// copy_command "xclip -selection clipboard" // x11
|
||||||
// copy_command "wl-copy" // wayland
|
// copy_command "wl-copy" // wayland
|
||||||
// copy_command "pbcopy" // osx
|
// copy_command "pbcopy" // osx
|
||||||
//
|
|
||||||
// copy_command "pbcopy"
|
|
||||||
|
|
||||||
// Choose the destination for copied text
|
// Choose the destination for copied text
|
||||||
// Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard.
|
// Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard.
|
||||||
@@ -367,54 +379,33 @@ pane_frames false
|
|||||||
//
|
//
|
||||||
// copy_clipboard "primary"
|
// copy_clipboard "primary"
|
||||||
|
|
||||||
// Enable automatic copying (and clearing) of selection when releasing mouse
|
// Enable or disable automatic copy (and clear) of selection when releasing mouse
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
// copy_on_select true
|
// copy_on_select false
|
||||||
|
|
||||||
// Path to the default editor to use to edit pane scrollbuffer
|
// Path to the default editor to use to edit pane scrollbuffer
|
||||||
// Default: $EDITOR or $VISUAL
|
// Default: $EDITOR or $VISUAL
|
||||||
|
//
|
||||||
// scrollback_editor "/usr/bin/vim"
|
// scrollback_editor "/usr/bin/vim"
|
||||||
|
|
||||||
// A fixed name to always give the Zellij session.
|
// When attaching to an existing session with other users,
|
||||||
// Consider also setting `attach_to_session true,`
|
// should the session be mirrored (true)
|
||||||
// otherwise this will error if such a session exists.
|
// or should each user have their own cursor (false)
|
||||||
// Default: <RANDOM>
|
// (Requires restart)
|
||||||
//
|
|
||||||
// session_name "My singleton session"
|
|
||||||
|
|
||||||
// When `session_name` is provided, attaches to that session
|
|
||||||
// if it is already running or creates it otherwise.
|
|
||||||
// Default: false
|
// Default: false
|
||||||
//
|
//
|
||||||
// attach_to_session true
|
// mirror_session true
|
||||||
|
|
||||||
// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible
|
// The folder in which Zellij will look for layouts
|
||||||
// Options:
|
// (Requires restart)
|
||||||
// - true (default)
|
|
||||||
// - false
|
|
||||||
//
|
//
|
||||||
// auto_layout false
|
// layout_dir "/path/to/my/layout_dir"
|
||||||
|
|
||||||
// Whether sessions should be serialized to the cache folder (including their tabs/panes, cwds and running commands) so that they can later be resurrected
|
// The folder in which Zellij will look for themes
|
||||||
// Options:
|
// (Requires restart)
|
||||||
// - true (default)
|
|
||||||
// - false
|
|
||||||
//
|
//
|
||||||
// session_serialization false
|
// theme_dir "/path/to/my/theme_dir"
|
||||||
|
|
||||||
// Whether pane viewports are serialized along with the session, default is false
|
|
||||||
// Options:
|
|
||||||
// - true
|
|
||||||
// - false (default)
|
|
||||||
//
|
|
||||||
// serialize_pane_viewport false
|
|
||||||
|
|
||||||
// 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.
|
|
||||||
//
|
|
||||||
// scrollback_lines_to_serialize 10000
|
|
||||||
|
|
||||||
// Enable or disable the rendering of styled and colored underlines (undercurl).
|
// Enable or disable the rendering of styled and colored underlines (undercurl).
|
||||||
// May need to be disabled for certain unsupported terminals
|
// May need to be disabled for certain unsupported terminals
|
||||||
@@ -423,16 +414,12 @@ pane_frames false
|
|||||||
//
|
//
|
||||||
// styled_underlines false
|
// styled_underlines false
|
||||||
|
|
||||||
// How often in seconds sessions are serialized
|
|
||||||
//
|
|
||||||
// serialization_interval 10000
|
|
||||||
|
|
||||||
// Enable or disable writing of session metadata to disk (if disabled, other sessions might not know
|
// Enable or disable writing of session metadata to disk (if disabled, other sessions might not know
|
||||||
// metadata info on this session)
|
// metadata info on this session)
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// Default: false
|
// Default: false
|
||||||
//
|
//
|
||||||
// disable_session_metadata false
|
// disable_session_metadata true
|
||||||
|
|
||||||
// Enable or disable support for the enhanced Kitty Keyboard Protocol (the host terminal must also support it)
|
// Enable or disable support for the enhanced Kitty Keyboard Protocol (the host terminal must also support it)
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
@@ -440,16 +427,94 @@ pane_frames false
|
|||||||
//
|
//
|
||||||
// support_kitty_keyboard_protocol false
|
// support_kitty_keyboard_protocol false
|
||||||
|
|
||||||
|
// Whether to make sure a local web server is running when a new Zellij session starts.
|
||||||
|
// This web server will allow creating new sessions and attaching to existing ones that have
|
||||||
|
// opted in to being shared in the browser.
|
||||||
|
// When enabled, navigate to http://127.0.0.1:8082
|
||||||
|
// (Requires restart)
|
||||||
|
//
|
||||||
|
// Note: a local web server can still be manually started from within a Zellij session or from the CLI.
|
||||||
|
// If this is not desired, one can use a version of Zellij compiled without
|
||||||
|
// `web_server_capability`
|
||||||
|
//
|
||||||
|
// Possible values:
|
||||||
|
// - true
|
||||||
|
// - false
|
||||||
|
// Default: false
|
||||||
|
//
|
||||||
|
// web_server true
|
||||||
|
|
||||||
|
// Whether to allow sessions started in the terminal to be shared through a local web server, assuming one is
|
||||||
|
// running (see the `web_server` option for more details).
|
||||||
|
// (Requires restart)
|
||||||
|
//
|
||||||
|
// Note: This is an administrative separation and not intended as a security measure.
|
||||||
|
//
|
||||||
|
// Possible values:
|
||||||
|
// - "on" (allow web sharing through the local web server if it
|
||||||
|
// is online)
|
||||||
|
// - "off" (do not allow web sharing unless sessions explicitly opt-in to it)
|
||||||
|
// - "disabled" (do not allow web sharing and do not permit sessions started in the terminal to opt-in to it)
|
||||||
|
// Default: "off"
|
||||||
|
//
|
||||||
|
// web_sharing "on"
|
||||||
|
|
||||||
|
// The ip address the web server should listen on when it starts
|
||||||
|
// Default: "127.0.0.1"
|
||||||
|
// (Requires restart)
|
||||||
|
//
|
||||||
|
// web_server_ip "127.0.0.1"
|
||||||
|
|
||||||
|
|
||||||
|
// A path to a certificate file to be used when setting up the web client to serve the
|
||||||
|
// connection over HTTPs
|
||||||
|
//
|
||||||
|
// web_server_cert "/path/to/my/cert.pem"
|
||||||
|
|
||||||
|
// A path to a key file to be used when setting up the web client to serve the
|
||||||
|
// connection over HTTPs
|
||||||
|
//
|
||||||
|
// web_server_key "/path/to/my/key.pem"
|
||||||
|
|
||||||
|
// Whether to enforce https connections to the web server when it is bound to localhost
|
||||||
|
// (127.0.0.0/8)
|
||||||
|
//
|
||||||
|
// Note: https is ALWAYS enforced when bound to non-local interfaces
|
||||||
|
//
|
||||||
|
// Default: false
|
||||||
|
//
|
||||||
|
// enforce_https_for_localhost true
|
||||||
|
|
||||||
|
// The port the web server should listen on when it starts
|
||||||
|
// Default: 8082
|
||||||
|
// (Requires restart)
|
||||||
|
//
|
||||||
|
// web_server_port 8082
|
||||||
|
|
||||||
// Whether to stack panes when resizing beyond a certain size
|
// Whether to stack panes when resizing beyond a certain size
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
// stacked_resize false
|
// stacked_resize false
|
||||||
|
|
||||||
// Whether to show tips on startup
|
|
||||||
// Default: true
|
|
||||||
//
|
|
||||||
|
|
||||||
// Whether to show release notes on first version run
|
// Whether to show release notes on first version run
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
// show_release_notes false
|
// show_release_notes false
|
||||||
|
|
||||||
|
// Whether to enable mouse hover effects and pane grouping functionality
|
||||||
|
// Default: true
|
||||||
|
//
|
||||||
|
// advanced_mouse_actions false
|
||||||
|
|
||||||
|
// A command to run (will be wrapped with sh -c and provided the RESURRECT_COMMAND env variable)
|
||||||
|
// after Zellij attempts to discover a command inside a pane when resurrecting sessions, the STDOUT
|
||||||
|
// of this command will be used instead of the discovered RESURRECT_COMMAND
|
||||||
|
// can be useful for removing wrappers around commands
|
||||||
|
// Note: be sure to escape backslashes and similar characters properly
|
||||||
|
//
|
||||||
|
// post_command_discovery_hook "echo $RESURRECT_COMMAND | sed <your_regex_here>"
|
||||||
|
|
||||||
|
|
||||||
|
web_client {
|
||||||
|
font "monospace"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user