aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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