diff options
author | David Runge <dave@sleepmap.de> | 2015-10-22 15:43:39 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2015-10-22 15:43:39 +0200 |
commit | 995892dc2105fa5c89b7f7ae32db46104b5c9e56 (patch) | |
tree | 69095b28f13a8ee1d104c08ce52809cebe360237 | |
parent | b289864e3912683ca8d7b57c70cce03d185fbb2d (diff) | |
download | dotfiles-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.conf | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |