mirror of
https://github.com/tmux/tmux.git
synced 2025-12-21 06:46:08 +00:00
Add a scroll-to-mouse command for copy mode to scroll to the mouse
position and bind to the scrollbar, brings the scrollbar keys into line with the other mouse keys. From Michael Grant, GitHub issue 4731.
This commit is contained in:
15
tmux.1
15
tmux.1
@@ -2211,6 +2211,13 @@ but also exit copy mode if the cursor reaches the bottom.
|
||||
Scroll so that the current line becomes the middle one while keeping the
|
||||
cursor on that line.
|
||||
.It Xo
|
||||
.Ic scroll-to-mouse
|
||||
.Xc
|
||||
Scroll pane in copy-mode when bound to a mouse drag event.
|
||||
.Fl e
|
||||
causes copy mode to exit when at the bottom.
|
||||
.Pp
|
||||
.It Xo
|
||||
.Ic scroll-top
|
||||
.Xc
|
||||
Scroll down until the current line is at the top while keeping the cursor on
|
||||
@@ -2447,12 +2454,10 @@ cancels copy mode and any other modes.
|
||||
.Fl M
|
||||
begins a mouse drag (only valid if bound to a mouse key binding, see
|
||||
.Sx MOUSE SUPPORT ) .
|
||||
.Pp
|
||||
.Fl S
|
||||
scrolls when bound to a mouse drag event; for example,
|
||||
.Ic copy-mode -Se
|
||||
is bound to
|
||||
.Ar MouseDrag1ScrollbarSlider
|
||||
by default.
|
||||
enters copy-mode and scrolls when bound to a mouse drag event; See
|
||||
.Ic scroll-to-mouse .
|
||||
.Pp
|
||||
.Fl s
|
||||
copies from
|
||||
|
||||
Reference in New Issue
Block a user