aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2019-08-14 09:58:31 +0000
committernicm <nicm>2019-08-14 09:58:31 +0000
commit0f243f03882671f19d35c9bd2decfc94919979fa (patch)
tree05436a488884f13a8c8b9910983a497580ac3c90 /tmux.1
parent45f4ff54850ff9b448070a96b33e63451f973e33 (diff)
downloadrtmux-0f243f03882671f19d35c9bd2decfc94919979fa.tar.gz
rtmux-0f243f03882671f19d35c9bd2decfc94919979fa.tar.bz2
rtmux-0f243f03882671f19d35c9bd2decfc94919979fa.zip
Add -Z flag to rotate-window, select-pane, swap-pane, switch-client to
preserve zoomed state. GitHub issue 1839.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.125
1 files changed, 18 insertions, 7 deletions
diff --git a/tmux.1 b/tmux.1
index 20863dfa..1bac8de8 100644
--- a/tmux.1
+++ b/tmux.1
@@ -1291,7 +1291,7 @@ Suspend a client by sending
.Dv SIGTSTP
(tty stop).
.It Xo Ic switch-client
-.Op Fl Elnpr
+.Op Fl ElnprZ
.Op Fl c Ar target-client
.Op Fl t Ar target-session
.Op Fl T Ar key-table
@@ -1308,7 +1308,10 @@ may refer to a pane (a target that contains
.Ql \&.
or
.Ql % ) ,
-in which case the session, window and pane are all changed.
+to change session, window and pane.
+In that case,
+.Fl Z
+keeps the window zoomed if it was zoomed.
If
.Fl l ,
.Fl n
@@ -1934,11 +1937,13 @@ The
option kills all but the window given with
.Fl t .
.It Xo Ic last-pane
-.Op Fl de
+.Op Fl deZ
.Op Fl t Ar target-window
.Xc
.D1 (alias: Ic lastp )
Select the last (previously selected) pane.
+.Fl Z
+keeps the window zoomed if it was zoomed.
.Fl e
enables or
.Fl d
@@ -2320,7 +2325,7 @@ option has the same meaning as for the
.Ic new-window
command.
.It Xo Ic rotate-window
-.Op Fl DU
+.Op Fl DUZ
.Op Fl t Ar target-window
.Xc
.D1 (alias: Ic rotatew )
@@ -2328,6 +2333,8 @@ Rotate the positions of the panes within a window, either upward (numerically
lower) with
.Fl U
or downward (numerically higher).
+.Fl Z
+keeps the window zoomed if it was zoomed.
.It Xo Ic select-layout
.Op Fl Enop
.Op Fl t Ar target-pane
@@ -2351,7 +2358,7 @@ applies the last set layout if possible (undoes the most recent layout change).
.Fl E
spreads the current pane and any panes next to it out evenly.
.It Xo Ic select-pane
-.Op Fl DdeLlMmRU
+.Op Fl DdeLlMmRUZ
.Op Fl T Ar title
.Op Fl t Ar target-pane
.Xc
@@ -2368,6 +2375,8 @@ or
.Fl U
is used, respectively the pane below, to the left, to the right, or above the
target pane is used.
+.Fl Z
+keeps the window zoomed if it was zoomed.
.Fl l
is the same as using the
.Ic last-pane
@@ -2473,7 +2482,7 @@ All other options have the same meaning as for the
.Ic new-window
command.
.It Xo Ic swap-pane
-.Op Fl dDU
+.Op Fl dDUZ
.Op Fl s Ar src-pane
.Op Fl t Ar dst-pane
.Xc
@@ -2490,7 +2499,9 @@ swaps with the next pane (after it numerically).
.Fl d
instructs
.Nm
-not to change the active pane.
+not to change the active pane and
+.Fl Z
+keeps the window zoomed if it was zoomed.
.Pp
If
.Fl s