From be0e96469bad03be6e5e148ccbfd07506ede9ba8 Mon Sep 17 00:00:00 2001 From: Shawn Anderson Date: Thu, 24 Nov 2022 17:50:35 -0800 Subject: [PATCH] Fix tmux shift and control window navigation. --- dotfiles/.config/tmux/keys.tmux | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/dotfiles/.config/tmux/keys.tmux b/dotfiles/.config/tmux/keys.tmux index ac0eb8a..e63485b 100644 --- a/dotfiles/.config/tmux/keys.tmux +++ b/dotfiles/.config/tmux/keys.tmux @@ -10,17 +10,11 @@ unbind ^C bind c new-window -c '#{pane_current_path}' #urxvt tab like window switching (-n: no prior escape seq) -bind -n S-down new-window -bind -n S-left prev -bind -n S-right next -bind -n C-left swap-window -t -1 -bind -n C-right swap-window -t +1 +bind -n C-left prev +bind -n C-right next +bind -n S-Left { swap-window -t -1; previous-window } +bind -n S-Right { swap-window -t +1; next-window } -# zoom a pane into a new window for temporary work -# unbind + - bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom -# unbind - - bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom #detach ^D d unbind ^D bind ^D detach