From 34636bf08a4cf9e3ae8a7157d5c90f90de78af1a Mon Sep 17 00:00:00 2001 From: "Lloyd W. Slade" Date: Wed, 11 Mar 2020 21:00:39 -0400 Subject: [PATCH] broke it for old tmux, let's try this again --- f-keys | 5 ----- tmux-2.9.conf | 4 ++++ tmux.conf | 4 ++++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/f-keys b/f-keys index e607077..2a5cb83 100644 --- a/f-keys +++ b/f-keys @@ -31,10 +31,5 @@ bind-key W resize-pane -U 5 bind-key A resize-pane -L 5 bind-key D resize-pane -R 5 -# move windows -bind-key Left swap-window -t -1\; select-window -t -1 -bind-key Right swap-window -t +1\; select-window -t +1 - - # reload config file bind r source-file ~/.tmux.conf diff --git a/tmux-2.9.conf b/tmux-2.9.conf index bd0e50d..0bf0069 100644 --- a/tmux-2.9.conf +++ b/tmux-2.9.conf @@ -10,6 +10,10 @@ set -g default-terminal "screen-256color" # source ~/fmux/f-keys, which adds the useful byobu F-key shortcuts source ~/fmux/f-keys +# keys for moving windows +bind-key -n Left swap-window -t -1 +bind-key -n Right swap-window -t +1 + # pane border colors set -g pane-border-style fg=black diff --git a/tmux.conf b/tmux.conf index 57ce223..805a30e 100644 --- a/tmux.conf +++ b/tmux.conf @@ -10,6 +10,10 @@ set -g default-terminal "screen-256color" # source ~/fmux/f-keys, which adds the useful byobu F-key shortcuts source ~/fmux/f-keys +# keys for window movement +bind-key Left swap-window -t -1\; select-window -t -1 +bind-key Right swap-window -t +1\; select-window -t +1 + # pane border colors set -g pane-border-fg black