Search
 
 

Display results as :
 


Rechercher Advanced Search

Top posting users this month

GeoMap

The tmux 2.1 does not support mouse scroll from outside the Copy Mode

View previous topic View next topic Go down

The tmux 2.1 does not support mouse scroll from outside the Copy Mode

Post  halala on Sun Nov 15, 2015 10:57 am

Someone might find his/her tmux is not working overnight.
please refer to: [You must be registered and logged in to see this link.]


CHANGES FROM 2.0 to 2.1 18 October 2015

Incompatible Changes
====================

* Mouse-mode has been rewritten. There's now no longer options for:
- mouse-resize-pane
- mouse-select-pane
- mouse-select-window
- mode-mouse

However, you have to first enter the "Copy Mode" first to start a scrolling! What an awkward fall back! Evil or Very Mad

As @Graham42 noted, mouse option has changed in version 2.1. Scrolling now requires for you to enter copy mode first. To enable scrolling almost identical to how it was before 2.1 add following to your .tmux.conf.

Code:
set-option -g mouse on

# make scrolling with wheels work
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

This will enable scrolling on hover over a pane and you will be able to scroll that pane line by line.

Source: [You must be registered and logged in to see this link.]
avatar
halala

帖子数 : 99
金币(Coin) : 2218
注册日期 : 2012-08-17

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum