Add copy-mode -e to exit copy mode when scrolling off the bottom, useful

for quick view of history, from Cam Hutchison.
This commit is contained in:
nicm
2015-09-13 13:31:40 +00:00
parent ede0f2f633
commit 901c2eb20a
4 changed files with 39 additions and 7 deletions

12
tmux.1
View File

@ -1133,7 +1133,7 @@ The synopsis for the
command is:
.Bl -tag -width Ds
.It Xo Ic copy-mode
.Op Fl Mu
.Op Fl Meu
.Op Fl t Ar target-pane
.Xc
Enter copy mode.
@ -1143,6 +1143,16 @@ option scrolls one page up.
.Fl M
begins a mouse drag (only valid if bound to a mouse key binding, see
.Sx MOUSE SUPPORT ) .
.Fl e
specifies that scrolling to the bottom of the history (to the visible screen)
should exit copy mode.
While in copy mode, pressing a key other than those used for scrolling will
disable this behaviour.
This is intended to allow fast scrolling through a pane's history, for
example with:
.Bd -literal -offset indent
bind PageUp copy-mode -eu
.Ed
.El
.Pp
Each window displayed by