1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-12-27 01:01:05 +00:00
dotfiles/.config/zellij/config.kdl
2022-11-19 19:03:32 +01:00

71 lines
2.3 KiB
Text

default_layout "compact"
scroll_buffer_size 100000
copy_on_select true
default_shell "/usr/bin/fish"
scrollback_editor "/home/mo/bin/nvim/bin/nvim"
keybinds clear-defaults=true {
normal {
bind "Alt L" { SwitchToMode "locked"; }
bind "Alt p" { SwitchToMode "pane"; }
bind "Alt r" { SwitchToMode "resize"; }
bind "Alt b" { SwitchToMode "tab"; }
bind "Alt s" { SwitchToMode "scroll"; }
bind "Alt m" { SwitchToMode "move"; }
bind "Alt n" { NewPane; }
bind "Alt k" { FocusNextPane; }
bind "Alt j" { FocusPreviousPane; }
bind "Alt +" { Resize "Increase"; }
bind "Alt -" { Resize "Decrease"; }
bind "Alt t" { NewTab; }
bind "Alt o" { GoToNextTab; }
bind "Alt i" { GoToPreviousTab; }
bind "Alt D" { Detach; }
}
locked {
bind "Alt L" { SwitchToMode "normal"; }
}
pane {
bind "q" "Esc" { SwitchToMode "normal"; }
bind "h" { MoveFocus "Left"; }
bind "l" { MoveFocus "Right"; }
bind "j" { MoveFocus "Down"; }
bind "k" { MoveFocus "Up"; }
bind "d" { NewPane "Down"; SwitchToMode "normal"; }
bind "r" { NewPane "Right"; SwitchToMode "normal"; }
bind "x" { CloseFocus; SwitchToMode "normal"; }
bind "f" { ToggleFocusFullscreen; SwitchToMode "normal"; }
bind "w" { ToggleFloatingPanes; SwitchToMode "normal"; }
bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "normal"; }
}
tab {
bind "q" "Esc" { SwitchToMode "normal"; }
bind "x" { CloseTab; SwitchToMode "normal"; }
bind "s" { ToggleActiveSyncTab; SwitchToMode "normal"; }
}
resize {
bind "q" "Esc" { SwitchToMode "normal"; }
bind "h" { Resize "Left"; }
bind "j" { Resize "Down"; }
bind "k" { Resize "Up"; }
bind "l" { Resize "Right"; }
}
move {
bind "q" "Esc" { SwitchToMode "normal"; }
bind "h" { MovePane "Left"; }
bind "j" { MovePane "Down"; }
bind "k" { MovePane "Up"; }
bind "l" { MovePane "Right"; }
}
scroll {
bind "q" "Esc" { SwitchToMode "normal"; }
bind "e" { EditScrollback; SwitchToMode "normal"; }
bind "j" { ScrollDown; }
bind "k" { ScrollUp; }
bind "l" { PageScrollDown; }
bind "h" { PageScrollUp; }
}
}