From bb143d4e33c9bcca70df066bf2a2b48fb79bdc8f Mon Sep 17 00:00:00 2001 From: Shotaro Fujimoto Date: Fri, 20 Oct 2017 23:38:52 +0900 Subject: [PATCH] tmux/mac: Add keybind for scrolling in iTerm2 (not working) --- tmux/mac/tmux.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tmux/mac/tmux.conf b/tmux/mac/tmux.conf index 3a131bc..273ad33 100644 --- a/tmux/mac/tmux.conf +++ b/tmux/mac/tmux.conf @@ -285,6 +285,8 @@ bind-key r source-file ~/.tmux.conf \; display "Reloaded!" # you can resize pane by mouse # set -g mouse-resize-pane on +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 #---------------------------------------------------------------------------}}} # Color {{{