From e9d37a28ab8e6a5d7a03414eb749874e039e3c74 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 9 Mar 2023 17:45:07 +0100 Subject: Allow navigation panes in tmux with ctrl + arrow --- .tmux.conf | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.tmux.conf') diff --git a/.tmux.conf b/.tmux.conf index 7e93ea6..1fea36e 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -23,5 +23,14 @@ bind-key -r j resize-pane -D 5 bind-key -r k resize-pane -U 5 bind-key -r l resize-pane -R 5 +# Switch pane with Ctrl+Arrow (instead of prefix Ctrl+Arrow) +# This is conflicting with MacOS keyboard shortcuts (System Preferences > Keyboard > Shortcuts > Mission Control) +# move space left/move space right are disabled as well as Mission Control and Application windows shortcuts +# in System Preferences > Mission Control > Keyboard and Mouse shortcuts +bind-key -T root C-Up select-pane -U +bind-key -T root C-Down select-pane -D +bind-key -T root C-Left select-pane -L +bind-key -T root C-right select-pane -R + # Load OSX specific configurations to add (fix copy) if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.conf' -- cgit v1.2.3