From b7aa0e075988858a721a01ff09f9b090177b2200 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Thu, 9 Mar 2017 12:26:51 -0500 Subject: tmux: keybindings to reorder windows --- dot/tmux.stage2.conf | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dot') diff --git a/dot/tmux.stage2.conf b/dot/tmux.stage2.conf index 915b203..495a7ea 100644 --- a/dot/tmux.stage2.conf +++ b/dot/tmux.stage2.conf @@ -9,8 +9,14 @@ unbind C-b set -g prefix C-z bind z send-prefix +# this is the best way to reorder windows +bind-key -n C-S-Left swap-window -t -1 +bind-key -n C-S-Right swap-window -t +1 + # redundantly bind some frequent commands so that the Control key does not have to be released bind-key C-n next-window +bind-key Space next-window +bind-key C-Space next-window bind-key C-p previous-window bind-key C-z last-window bind-key C-c new-window -- cgit v1.2.3