From: Iain Patterson Date: Sun, 7 Aug 2011 11:33:43 +0000 (+0100) Subject: Revamp pane and window swapping. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=7893f3ff87578ea0314a05970216a766376b3b3a;p=profile.git 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. --- 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.