Add scroll-top and scroll-bottom commands to scroll so cursor is at top

or bottom. From Anindya Mukherjee, GitHub issue 3334.
This commit is contained in:
nicm
2022-09-28 07:59:50 +00:00
parent 9cc8e40aa0
commit a10452be2d
2 changed files with 59 additions and 8 deletions

11
tmux.1
View File

@ -1808,7 +1808,9 @@ The following commands are supported in copy mode:
.It Li "search-forward <for>" Ta "/" Ta ""
.It Li "search-forward-incremental <for>" Ta "" Ta "C-s"
.It Li "search-forward-text <for>" Ta "" Ta ""
.It Li "scroll-bottom" Ta "" Ta ""
.It Li "scroll-middle" Ta "z" Ta ""
.It Li "scroll-top" Ta "" Ta ""
.It Li "search-reverse" Ta "N" Ta "N"
.It Li "select-line" Ta "V" Ta ""
.It Li "select-word" Ta "" Ta ""
@ -2011,7 +2013,7 @@ but a different format may be specified with
.Fl F .
.Tg capturep
.It Xo Ic capture-pane
.Op Fl aepPqCJN
.Op Fl aAepPqCJN
.Op Fl b Ar buffer-name
.Op Fl E Ar end-line
.Op Fl S Ar start-line
@ -2036,10 +2038,15 @@ is given, the output includes escape sequences for text and background
attributes.
.Fl C
also escapes non-printable characters as octal \exxx.
.Fl T
ignores trailing positions that do not contain a character.
.Fl N
preserves trailing spaces at each line's end and
.Fl J
preserves trailing spaces and joins any wrapped lines.
preserves trailing spaces and joins any wrapped lines;
.Fl J
implies
.Fl T .
.Fl P
captures only any output that the pane has received that is the beginning of an
as-yet incomplete escape sequence.