From b7d333ef810fd7e040f99a774c1bc39abdeb7a83 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 9 May 2022 16:04:00 +0200 Subject: [PATCH] tmux: Make window-navigation bindings repeatable This way the prefix only has to be pressed once. (As long as the key is repeated in `repeat-time`) --- .config/tmux/tmux.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 55d1fa8..474d1cc 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -38,6 +38,12 @@ set -g renumber-windows on # of the prefix. (Exists already per default with prefix) bind-key -n PPage copy-mode -u +# Repeatable window-navigation bindings +bind-key -r -T prefix n next-window +bind-key -r -T prefix C-n next-window +bind-key -r -T prefix p previous-window +bind-key -r -T prefix C-p previous-window + # Vim-bindings # Enter copy-mode with Escape