From 88e991f9449f12e6a3b871cad16ece01ec44c866 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 15 Jun 2023 12:09:44 +0200 Subject: [PATCH] tmux: Add bindings to swap window with prev/next --- .config/tmux/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index c5fbfcc..bb42aab 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -76,6 +76,10 @@ bind -r C-n next bind -r p prev bind -r C-p prev +# Swap window with previous/next one +bind -r N swap-window -d -t :+1 +bind -r P swap-window -d -t :-1 + # Repeatable window-movement bindings bind -r \{ swap-pane -U bind -r \} swap-pane -D