Add a layout history which can be stepped through with select-layout -u

and -U commands (bound to 'u' and 'U' by default).
This commit is contained in:
Nicholas Marriott
2012-04-01 13:18:38 +00:00
parent b831f86354
commit 85f5485cb5
8 changed files with 149 additions and 13 deletions

16
tmux.1
View File

@ -1451,7 +1451,7 @@ lower) with
.Fl U
or downward (numerically higher).
.It Xo Ic select-layout
.Op Fl np
.Op Fl npUu
.Op Fl t Ar target-window
.Op Ar layout-name
.Xc
@ -1468,6 +1468,13 @@ are equivalent to the
and
.Ic previous-layout
commands.
.Pp
.Fl U
and
.Fl u
step forward and back through previous layouts, up to the maximum set by the
.Ic layout-history-limit
option.
.It Xo Ic select-pane
.Op Fl lDLRU
.Op Fl t Ar target-pane
@ -2509,6 +2516,13 @@ or
.Ar height .
A value of zero restores the default unlimited setting.
.Pp
.It Ic layout-history-limit Ar limit
Set the number of previous layouts stored for recovery with
.Ic select-layout
.Fl U
and
.Fl u .
.Pp
.It Ic main-pane-height Ar height
.It Ic main-pane-width Ar width
Set the width or height of the main (left or top) pane in the