From fd2712d3403845343aa57215c3943dae4da2c6cc Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 2 Nov 2015 16:04:37 -0500 Subject: [PATCH] tmux: Enable mouse wheel scrolling by default --- packages/tmux/build.sh | 1 + packages/tmux/tmux.conf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/packages/tmux/build.sh b/packages/tmux/build.sh index 2e96a5f0..8b61eb1a 100755 --- a/packages/tmux/build.sh +++ b/packages/tmux/build.sh @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://tmux.github.io/ TERMUX_PKG_DESCRIPTION="Terminal multiplexer implementing switching between several programs in one terminal, detaching them and reattaching them to a different terminal" TERMUX_PKG_DEPENDS="ncurses, libevent, libutil" TERMUX_PKG_VERSION=2.1 +TERMUX_PKG_BUILD_REVISION=1 TERMUX_PKG_SRCURL=https://github.com/tmux/tmux/releases/download/${TERMUX_PKG_VERSION}/tmux-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_BUILD_IN_SRC=yes diff --git a/packages/tmux/tmux.conf b/packages/tmux/tmux.conf index 207e5b59..4ec5976f 100644 --- a/packages/tmux/tmux.conf +++ b/packages/tmux/tmux.conf @@ -1,2 +1,7 @@ set -g mouse on set -s escape-time 0 + +# Version 2.1 of tmux removed mouse wheel scrolling support by default, +# but these two lines from https://github.com/tmux/tmux/issues/145 add it back: +bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" +bind -n WheelDownPane select-pane -t= \; send-keys -M -- 2.11.0