commit be4f53d6460f0da08acbfbe2e94e74f5f4556d2b parent 12372825e95f3160e44a3db2ed594ff114202a08 Author: Alex Balgavy <alex@balgavy.eu> Date: Mon, 22 Nov 2021 19:13:11 +0100 tmux: allow switching sessions by repeating key Diffstat:
M | tmux/tmux-dark.conf | | | 4 | ++++ |
M | tmux/tmux-light.conf | | | 4 | ++++ |
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/tmux/tmux-dark.conf b/tmux/tmux-dark.conf @@ -82,6 +82,10 @@ bind-key -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel # Don't cancel mouse selection when letting go unbind -T copy-mode-vi MouseDragEnd1Pane + +# Allow switching sessions with repeat (-r) +bind-key -r ( switch-client -p +bind-key -r ) switch-client -n # }}} # Windows {{{ diff --git a/tmux/tmux-light.conf b/tmux/tmux-light.conf @@ -81,6 +81,10 @@ bind-key -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel # Don't cancel mouse selection when letting go unbind -T copy-mode-vi MouseDragEnd1Pane + +# Allow switching sessions with repeat (-r) +bind-key -r ( switch-client -p +bind-key -r ) switch-client -n # }}} # Windows {{{