From 7893f3ff87578ea0314a05970216a766376b3b3a Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Sun, 7 Aug 2011 12:33:43 +0100 Subject: [PATCH] Revamp pane and window swapping. The rotate-window command isn't hugely useful so instead bind o to "swap-pane -D" and O to "swap-pane -U" to swap the current pane with the next (resp. previous) pane. Bind w to prompt for a pane to swap with the current pane. Bind W to prompt for a window to swap with the current window. --- .tmux.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index d4077d3..3345bd0 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -66,7 +66,12 @@ bind C-^ last-pane bind J select-pane -D bind K select-pane -U # Swap panes. -bind w swap-pane +bind o swap-pane -D +bind C-o swap-pane -D +bind O swap-pane -U +bind w command-prompt -p "Select [.] to swap:" 'swap-pane -s . -t %1' +# Swap windows. +bind W choose-window "swap-window -t '%%'" # Show panes. bind = display-panes # Move the current pane into a separate window. -- 2.20.1