mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-13 08:02:40 +02:00
feat: zellij - remove tmux keybindings to avoid conflicts with server's tmux
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// 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 clear-defaults=true {
|
||||||
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; }
|
||||||
@@ -111,29 +111,29 @@ keybinds {
|
|||||||
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
||||||
bind "d" { Detach; }
|
bind "d" { Detach; }
|
||||||
}
|
}
|
||||||
tmux {
|
// tmux {
|
||||||
bind "[" { SwitchToMode "Scroll"; }
|
// bind "[" { SwitchToMode "Scroll"; }
|
||||||
bind "Ctrl b" { Write 2; SwitchToMode "Normal"; }
|
// bind "Ctrl b" { 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"; }
|
||||||
bind "c" { NewTab; SwitchToMode "Normal"; }
|
// bind "c" { NewTab; SwitchToMode "Normal"; }
|
||||||
bind "," { SwitchToMode "RenameTab"; }
|
// bind "," { SwitchToMode "RenameTab"; }
|
||||||
bind "p" { GoToPreviousTab; SwitchToMode "Normal"; }
|
// bind "p" { GoToPreviousTab; SwitchToMode "Normal"; }
|
||||||
bind "n" { GoToNextTab; SwitchToMode "Normal"; }
|
// bind "n" { GoToNextTab; SwitchToMode "Normal"; }
|
||||||
bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
// bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
||||||
bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
// bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
||||||
bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
// bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
||||||
bind "Up" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
// bind "Up" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
||||||
bind "h" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
// bind "h" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
||||||
bind "l" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
// bind "l" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
||||||
bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
// bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
||||||
bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
// bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
||||||
bind "o" { FocusNextPane; }
|
// bind "o" { FocusNextPane; }
|
||||||
bind "d" { Detach; }
|
// bind "d" { Detach; }
|
||||||
bind "Space" { NextSwapLayout; }
|
// bind "Space" { NextSwapLayout; }
|
||||||
bind "x" { CloseFocus; SwitchToMode "Normal"; }
|
// bind "x" { CloseFocus; SwitchToMode "Normal"; }
|
||||||
}
|
// }
|
||||||
shared_except "locked" {
|
shared_except "locked" {
|
||||||
bind "Ctrl g" { SwitchToMode "Locked"; }
|
bind "Ctrl g" { SwitchToMode "Locked"; }
|
||||||
bind "Ctrl q" { Quit; }
|
bind "Ctrl q" { Quit; }
|
||||||
@@ -168,9 +168,9 @@ keybinds {
|
|||||||
shared_except "move" "locked" {
|
shared_except "move" "locked" {
|
||||||
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 b" { SwitchToMode "Tmux"; }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
|||||||
Reference in New Issue
Block a user