feat(zellij): set up tabnav plugin and fix some keybinds
This commit is contained in:
parent
bec1233fcc
commit
dd99ddbe61
2 changed files with 14 additions and 2 deletions
|
@ -9,3 +9,7 @@
|
||||||
url = "https://github.com/chriskempson/base16-shell.git"
|
url = "https://github.com/chriskempson/base16-shell.git"
|
||||||
refreshPeriod = "168h"
|
refreshPeriod = "168h"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
[".config/zellij/plugins/room.wasm"]
|
||||||
|
type = "file"
|
||||||
|
url = "https://github.com/rvcas/room/releases/latest/download/room.wasm"
|
||||||
|
refreshPeriod = "168h"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
|
// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
|
||||||
keybinds {
|
keybinds {
|
||||||
|
unbind "Ctrl n"
|
||||||
normal {
|
normal {
|
||||||
// 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; }
|
||||||
|
@ -8,7 +9,7 @@ keybinds {
|
||||||
bind "Ctrl g" { SwitchToMode "Normal"; }
|
bind "Ctrl g" { SwitchToMode "Normal"; }
|
||||||
}
|
}
|
||||||
resize {
|
resize {
|
||||||
// bind "Ctrl n" { SwitchToMode "Normal"; }
|
bind "Ctrl r" { SwitchToMode "Normal"; }
|
||||||
bind "h" "Left" { Resize "Increase Left"; }
|
bind "h" "Left" { Resize "Increase Left"; }
|
||||||
bind "j" "Down" { Resize "Increase Down"; }
|
bind "j" "Down" { Resize "Increase Down"; }
|
||||||
bind "k" "Up" { Resize "Increase Up"; }
|
bind "k" "Up" { Resize "Increase Up"; }
|
||||||
|
@ -158,6 +159,13 @@ keybinds {
|
||||||
bind "Alt -" { Resize "Decrease"; }
|
bind "Alt -" { Resize "Decrease"; }
|
||||||
bind "Alt [" { PreviousSwapLayout; }
|
bind "Alt [" { PreviousSwapLayout; }
|
||||||
bind "Alt ]" { NextSwapLayout; }
|
bind "Alt ]" { NextSwapLayout; }
|
||||||
|
bind "Ctrl u" {
|
||||||
|
LaunchOrFocusPlugin "file:~/.config/zellij/plugins/room.wasm" {
|
||||||
|
floating true
|
||||||
|
ignore_case true
|
||||||
|
quick_jump true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
shared_except "normal" "locked" {
|
shared_except "normal" "locked" {
|
||||||
bind "Enter" "Esc" { SwitchToMode "Normal"; }
|
bind "Enter" "Esc" { SwitchToMode "Normal"; }
|
||||||
|
@ -166,7 +174,7 @@ keybinds {
|
||||||
bind "Ctrl p" { SwitchToMode "Pane"; }
|
bind "Ctrl p" { SwitchToMode "Pane"; }
|
||||||
}
|
}
|
||||||
shared_except "resize" "locked" {
|
shared_except "resize" "locked" {
|
||||||
bind "Ctrl n" { SwitchToMode "Resize"; }
|
bind "Ctrl r" { SwitchToMode "Resize"; }
|
||||||
}
|
}
|
||||||
shared_except "scroll" "locked" {
|
shared_except "scroll" "locked" {
|
||||||
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue