Parcourir la source

reenable mouse scrolling while in input mode

Kevin Heinicke il y a 8 ans
Parent
commit
52cacc1b17
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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