From 59d9601f49f9257ed6d931e002652c616e1faac9 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 3 Jan 2024 16:34:55 +0800 Subject: [PATCH] feat: zellij - remove tmux keybindings to avoid conflicts with server's tmux --- home/base/server/zellij/config.kdl | 54 +++++++++++++++--------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/home/base/server/zellij/config.kdl b/home/base/server/zellij/config.kdl index 575d0de4..8943dece 100644 --- a/home/base/server/zellij/config.kdl +++ b/home/base/server/zellij/config.kdl @@ -1,5 +1,5 @@ // 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 { // uncomment this and adjust key if using copy_on_select=false // bind "Alt c" { Copy; } @@ -111,29 +111,29 @@ keybinds { bind "Ctrl s" { SwitchToMode "Scroll"; } bind "d" { Detach; } } - tmux { - bind "[" { SwitchToMode "Scroll"; } - bind "Ctrl b" { Write 2; SwitchToMode "Normal"; } - bind "\"" { NewPane "Down"; SwitchToMode "Normal"; } - bind "%" { NewPane "Right"; SwitchToMode "Normal"; } - bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; } - bind "c" { NewTab; SwitchToMode "Normal"; } - bind "," { SwitchToMode "RenameTab"; } - bind "p" { GoToPreviousTab; SwitchToMode "Normal"; } - bind "n" { GoToNextTab; SwitchToMode "Normal"; } - bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; } - bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; } - bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; } - bind "Up" { MoveFocus "Up"; SwitchToMode "Normal"; } - bind "h" { MoveFocus "Left"; SwitchToMode "Normal"; } - bind "l" { MoveFocus "Right"; SwitchToMode "Normal"; } - bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; } - bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; } - bind "o" { FocusNextPane; } - bind "d" { Detach; } - bind "Space" { NextSwapLayout; } - bind "x" { CloseFocus; SwitchToMode "Normal"; } - } + // tmux { + // bind "[" { SwitchToMode "Scroll"; } + // bind "Ctrl b" { Write 2; SwitchToMode "Normal"; } + // bind "\"" { NewPane "Down"; SwitchToMode "Normal"; } + // bind "%" { NewPane "Right"; SwitchToMode "Normal"; } + // bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; } + // bind "c" { NewTab; SwitchToMode "Normal"; } + // bind "," { SwitchToMode "RenameTab"; } + // bind "p" { GoToPreviousTab; SwitchToMode "Normal"; } + // bind "n" { GoToNextTab; SwitchToMode "Normal"; } + // bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; } + // bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; } + // bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; } + // bind "Up" { MoveFocus "Up"; SwitchToMode "Normal"; } + // bind "h" { MoveFocus "Left"; SwitchToMode "Normal"; } + // bind "l" { MoveFocus "Right"; SwitchToMode "Normal"; } + // bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; } + // bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; } + // bind "o" { FocusNextPane; } + // bind "d" { Detach; } + // bind "Space" { NextSwapLayout; } + // bind "x" { CloseFocus; SwitchToMode "Normal"; } + // } shared_except "locked" { bind "Ctrl g" { SwitchToMode "Locked"; } bind "Ctrl q" { Quit; } @@ -168,9 +168,9 @@ keybinds { shared_except "move" "locked" { bind "Ctrl h" { SwitchToMode "Move"; } } - shared_except "tmux" "locked" { - bind "Ctrl b" { SwitchToMode "Tmux"; } - } + // shared_except "tmux" "locked" { + // bind "Ctrl b" { SwitchToMode "Tmux"; } + // } } plugins {