From 995892dc2105fa5c89b7f7ae32db46104b5c9e56 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 22 Oct 2015 15:43:39 +0200 Subject: .tmux.conf: Adding tmux > 2.1 mouse scrolling options. --- .tmux.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index 64af9f6..546fda7 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -36,6 +36,15 @@ set -g history-limit 10000 # set mouse mode on set -g mouse on +# Wheel scroll in pane +unbind -T root WheelUpPane +unbind -T root WheelDownPane +bind -T root WheelUpPane if -Ft= '#{mouse_any_flag}' 'send-keys -M' 'if -Ft= "#{pane_in_mode}" "send-keys -M" "copy-mode -u"' + +# Wheel scroll in pane WHILE in copy-mode +bind -tvi-copy WheelUpPane halfpage-up +bind -tvi-copy WheelDownPane halfpage-down + # Logout with Ctrl+D bind-key ^D detach-client -- cgit v1.2.3-70-g09d2