Update config.kdl

This commit is contained in:
rsiri 2024-04-03 17:35:26 +02:00 committed by GitHub
parent ec441fa6ac
commit 89226e4aec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ keybinds clear-defaults=true {
unbind "Ctrl p" unbind "Ctrl p"
unbind "Ctrl o" unbind "Ctrl o"
unbind "Ctrl q" unbind "Ctrl q"
unbind "Ctrl h" unbind "Ctrl j"
// uncomment this and adjust key if using copy_on_select=false // uncomment this and adjust key if using copy_on_select=false
// bind "Alt c" { Copy; } // bind "Alt c" { Copy; }
//bind "Alt s" { NewPane "Right"; } //bind "Alt s" { NewPane "Right"; }
@ -14,21 +14,28 @@ keybinds clear-defaults=true {
bind "Alt z" { GoToTab 2; } bind "Alt z" { GoToTab 2; }
bind "Alt e" { GoToTab 3; } bind "Alt e" { GoToTab 3; }
bind "Alt r" { GoToTab 4; } bind "Alt r" { GoToTab 4; }
bind "Ctrl t" { NewTab ; } // bind "Ctrl t" { NewTab ; }
bind "Ctrl h" { Resize "Left"; }
bind "Ctrl j" { Resize "Down"; }
bind "Ctrl k" { Resize "Up"; }
bind "Ctrl l" { Resize "Right"; }
bind "Ctrl d" { Detach; }
bind "Ctrl x" {
LaunchOrFocusPlugin "zellij:session-manager" {
floating true
};
SwitchToMode "Normal";
}
} }
locked { locked {
bind "Ctrl g" { SwitchToMode "Normal"; } bind "Ctrl g" { SwitchToMode "Normal"; }
} }
resize { resize {
bind "Ctrl n" { SwitchToMode "Normal"; } bind "Ctrl n" { SwitchToMode "Normal"; }
bind "h" "Left" { Resize "Increase Left"; } bind "h" { Resize "Left"; }
bind "j" "Down" { Resize "Increase Down"; } bind "j" { Resize "Down"; }
bind "k" "Up" { Resize "Increase Up"; } bind "k" { Resize "Up"; }
bind "l" "Right" { Resize "Increase Right"; } bind "l" { Resize "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 "Increase"; }
bind "-" { Resize "Decrease"; } bind "-" { Resize "Decrease"; }
} }
@ -110,9 +117,16 @@ keybinds clear-defaults=true {
bind "Esc" { UndoRenamePane; SwitchToMode "Pane"; } bind "Esc" { UndoRenamePane; SwitchToMode "Pane"; }
} }
session { session {
bind "Ctrl x" { SwitchToMode "Normal"; } // bind "Ctrl x" { SwitchToMode "Normal"; }
bind "Ctrl x" { SwitchToMode "Scroll"; } //bind "Ctrl x" { SwitchToMode "Scroll"; }
bind "d" { Detach; } //bind "d" { Detach; }
//bind "w" {
//LaunchOrFocusPlugin "zellij:session-manager" {
//floating true
//move_to_focused true
//};
//SwitchToMode "Normal";
//}
} }
tmux { tmux {
bind "[" { SwitchToMode "Scroll"; } bind "[" { SwitchToMode "Scroll"; }
@ -162,7 +176,7 @@ keybinds clear-defaults=true {
bind "Ctrl s" { SwitchToMode "Scroll"; } bind "Ctrl s" { SwitchToMode "Scroll"; }
} }
shared_except "session" "locked" { shared_except "session" "locked" {
bind "Ctrl x" { SwitchToMode "Session"; } bind "Ctrl o" { SwitchToMode "Session"; }
} }
shared_except "tab" "locked" { shared_except "tab" "locked" {
bind "Ctrl t" { SwitchToMode "Tab"; } bind "Ctrl t" { SwitchToMode "Tab"; }