aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-10-22 15:43:39 +0200
committerDavid Runge <dave@sleepmap.de>2015-10-22 15:43:39 +0200
commit995892dc2105fa5c89b7f7ae32db46104b5c9e56 (patch)
tree69095b28f13a8ee1d104c08ce52809cebe360237
parentb289864e3912683ca8d7b57c70cce03d185fbb2d (diff)
downloaddotfiles-995892dc2105fa5c89b7f7ae32db46104b5c9e56.tar.gz
dotfiles-995892dc2105fa5c89b7f7ae32db46104b5c9e56.tar.bz2
dotfiles-995892dc2105fa5c89b7f7ae32db46104b5c9e56.tar.xz
dotfiles-995892dc2105fa5c89b7f7ae32db46104b5c9e56.zip
.tmux.conf: Adding tmux > 2.1 mouse scrolling options.
-rw-r--r--.tmux.conf9
1 files changed, 9 insertions, 0 deletions
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