dotfiles/zellij/config.kdl
Anthony Cicchetti 0043e78eb2 zellij shakeup
2025-03-24 11:49:35 -04:00

64 lines
2.3 KiB
Text

keybinds {
shared_except "locked" "tmux" {
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"; }
}
normal {
bind "Ctrl q" { Quit; }
}
move {
bind "Esc" { SwitchToMode "Normal";}
}
locked {
bind "Ctrl g" { SwitchToMode "normal"; }
}
tmux {
bind "Esc" { EditScrollback; SwitchToMode "normal"; }
bind "Ctrl o" "Enter" "Space" "Esc" { SwitchToMode "normal"; }
bind "Ctrl q" { Quit; }
bind "[" { SwitchToMode "Scroll";}
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 "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; }
bind "/" { SwitchToMode "EnterSearch"; SearchInput 0;}
bind "m" { SwitchToMode "Move"; }
bind "+" { Resize "Increase";}
bind "=" { Resize "Decrease"; }
bind "w" { ToggleFloatingPanes; SwitchToMode "normal";}
bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "normal";}
bind "i" { TogglePanePinned; SwitchToMode "normal";}
}
}
session_serialization false
// Choose the theme that is specified in the themes section.
// Default: default
//
theme "nord"
ui {
pane_frames {
rounded_corners true
}
}