浏览代码

reenable mouse scrolling while in input mode

Kevin Heinicke 8 年之前
父节点
当前提交
52cacc1b17
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tmux.conf

+ 3 - 0
tmux.conf

@@ -5,6 +5,9 @@ set -g @plugin 'christoomey/vim-tmux-navigator'
 
 set -g mouse on
 
+# allow scroll while in input mode
+bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
+
 # try to use correct colors
 set -g default-terminal screen-256color