attempt tmux mode in zellij
This commit is contained in:
parent
66103b940e
commit
54f10e96fa
2 changed files with 5 additions and 52 deletions
|
@ -1,8 +1,8 @@
|
||||||
// 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 {
|
||||||
normal {
|
normal clear-defaults=true {
|
||||||
// uncomment this and adjust key if using copy_on_select=false
|
bind "Ctrl a" { SwitchToMode "Tmux"; }
|
||||||
// bind "Alt c" { Copy; }
|
unbind "Ctrl b"
|
||||||
}
|
}
|
||||||
locked {
|
locked {
|
||||||
bind "Ctrl g" { SwitchToMode "Normal"; }
|
bind "Ctrl g" { SwitchToMode "Normal"; }
|
||||||
|
@ -123,7 +123,7 @@ keybinds {
|
||||||
}
|
}
|
||||||
tmux {
|
tmux {
|
||||||
bind "[" { SwitchToMode "Scroll"; }
|
bind "[" { SwitchToMode "Scroll"; }
|
||||||
bind "Ctrl b" { Write 2; SwitchToMode "Normal"; }
|
bind "Ctrl a" { Write 2; SwitchToMode "Normal"; }
|
||||||
bind "\"" { NewPane "Down"; SwitchToMode "Normal"; }
|
bind "\"" { NewPane "Down"; SwitchToMode "Normal"; }
|
||||||
bind "%" { NewPane "Right"; SwitchToMode "Normal"; }
|
bind "%" { NewPane "Right"; SwitchToMode "Normal"; }
|
||||||
bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
|
bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
|
||||||
|
@ -181,7 +181,7 @@ keybinds {
|
||||||
bind "Ctrl h" { SwitchToMode "Move"; }
|
bind "Ctrl h" { SwitchToMode "Move"; }
|
||||||
}
|
}
|
||||||
shared_except "tmux" "locked" {
|
shared_except "tmux" "locked" {
|
||||||
bind "Ctrl b" { SwitchToMode "Tmux"; }
|
bind "Ctrl a" { SwitchToMode "Tmux"; }
|
||||||
}
|
}
|
||||||
shared_except "locked" {
|
shared_except "locked" {
|
||||||
bind "Ctrl h" {
|
bind "Ctrl h" {
|
||||||
|
@ -220,42 +220,6 @@ keybinds {
|
||||||
move_mod "ctrl";
|
move_mod "ctrl";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
bind "Alt h" {
|
|
||||||
MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.2.1/vim-zellij-navigator.wasm" {
|
|
||||||
name "resize";
|
|
||||||
payload "left";
|
|
||||||
|
|
||||||
resize_mod "alt"; // Optional, should be added on every command if you want to use it
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
bind "Alt j" {
|
|
||||||
MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.2.1/vim-zellij-navigator.wasm" {
|
|
||||||
name "resize";
|
|
||||||
payload "down";
|
|
||||||
|
|
||||||
resize_mod "alt";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
bind "Alt k" {
|
|
||||||
MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.2.1/vim-zellij-navigator.wasm" {
|
|
||||||
name "resize";
|
|
||||||
payload "up";
|
|
||||||
|
|
||||||
resize_mod "alt";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
bind "Alt l" {
|
|
||||||
MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.2.1/vim-zellij-navigator.wasm" {
|
|
||||||
name "resize";
|
|
||||||
payload "right";
|
|
||||||
|
|
||||||
resize_mod "alt";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
layout {
|
|
||||||
pane size=1 borderless=true {
|
|
||||||
plugin location="tab-bar"
|
|
||||||
}
|
|
||||||
pane {
|
|
||||||
plugin location="https://github.com/hiasr/vim-zellij-navigator/releases/download/0.2.1/vim-zellij-navigator.wasm"
|
|
||||||
}
|
|
||||||
pane size=2 borderless=true {
|
|
||||||
plugin location="status-bar"
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue