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