summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-06-29 03:30:13 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-06-29 03:30:13 +0000
commit552c9cd83f7207759b41947f63ada828683b7892 (patch)
tree432a775eabec3af116d70a5d6bff2fa2d88cd470 /tmux.1
parent76bbdeb586ad93cfb16bd12db865b4c672a9168e (diff)
Custom layouts. list-windows command displays the layout as a string (such as
"bb62,159x48,0,0{79x48,0,0,79x48,80,0}") and it can be applied to another window (with the same number of panes or fewer) using select-layout.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.120
1 files changed, 19 insertions, 1 deletions
diff --git a/tmux.1 b/tmux.1
index cd44b7f5..9252e25a 100644
--- a/tmux.1
+++ b/tmux.1
@@ -877,6 +877,24 @@ Panes are spread out as evenly as possible over the window in both rows and
columns.
.El
.Pp
+In addition,
+.Ic select-layout
+may be used to apply a previously used layout - the
+.Ic list-windows
+command displays the layout of each window in a form suitable for use with
+.Ic select-layout .
+For example:
+.Bd -literal -offset indent
+$ tmux list-windows
+0: ksh [159x48]
+ layout: bb62,159x48,0,0{79x48,0,0,79x48,80,0}
+$ tmux select-layout bb62,159x48,0,0{79x48,0,0,79x48,80,0}
+.Ed
+.Nm
+automatically adjusts the size of the layout for the current window size.
+Note that a layout cannot be applied to a window with more panes than that
+from which the layout was originally defined.
+.Pp
Commands related to windows and panes are as follows:
.Bl -tag -width Ds
.It Xo Ic break-pane
@@ -1224,7 +1242,7 @@ or downward (numerically higher).
Choose a specific layout for a window.
If
.Ar layout-name
-is not given, the last layout used (if any) is reapplied.
+is not given, the last preset layout used (if any) is reapplied.
.It Xo Ic select-pane
.Op Fl DLRU
.Op Fl t Ar target-pane