summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2019-10-15 08:25:37 +0000
committernicm <nicm>2019-10-15 08:25:37 +0000
commit0c5e9c6efae5c3fae84c35f655754fef242c6acc (patch)
tree21d540dbb1e8c9e20b753ca100d9b0e7fb3afe87 /tmux.1
parentb598bbcc2e8b26855e4d34dfff9c222c28080cd7 (diff)
Add support for percentage sizes for resize-pane ("-x 10%"). Also change
split-window and join-pane -l to accept similar percentages and deprecate -p. From Anindya Mukherjee.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.132
1 files changed, 17 insertions, 15 deletions
diff --git a/tmux.1 b/tmux.1
index ff19c225..9405a11a 100644
--- a/tmux.1
+++ b/tmux.1
@@ -1891,9 +1891,7 @@ zooms the pane.
This command works only if at least one client is attached.
.It Xo Ic join-pane
.Op Fl bdhv
-.Oo Fl l
-.Ar size |
-.Fl p Ar percentage Oc
+.Op Fl l Ar size
.Op Fl s Ar src-pane
.Op Fl t Ar dst-pane
.Xc
@@ -2030,9 +2028,7 @@ flag, see the
section.
.It Xo Ic move-pane
.Op Fl bdhv
-.Oo Fl l
-.Ar size |
-.Fl p Ar percentage Oc
+.Op Fl l Ar size
.Op Fl s Ar src-pane
.Op Fl t Ar dst-pane
.Xc
@@ -2241,8 +2237,14 @@ or
.Fl y .
The
.Ar adjustment
-is given in lines or cells (the default is 1).
-.Pp
+is given in lines or columns (the default is 1);
+.Fl x
+and
+.Fl y
+may be a given as a number of lines or columns or followed by
+.Ql %
+for a percentage of the window size (for example
+.Ql -x 10% ) .
With
.Fl Z ,
the active pane is toggled between zoomed (occupying the whole of the window)
@@ -2434,9 +2436,7 @@ the command behaves like
.Op Fl bdfhIvP
.Op Fl c Ar start-directory
.Op Fl e Ar environment
-.Oo Fl l
-.Ar size |
-.Fl p Ar percentage Oc
+.Op Fl l Ar size
.Op Fl t Ar target-pane
.Op Ar shell-command
.Op Fl F Ar format
@@ -2452,10 +2452,12 @@ a vertical split; if neither is specified,
is assumed.
The
.Fl l
-and
-.Fl p
-options specify the size of the new pane in lines (for vertical split) or in
-cells (for horizontal split), or as a percentage, respectively.
+option specifies the size of the new pane in lines (for vertical split) or in
+columns (for horizontal split);
+.Ar size
+may be followed by
+.Ql %
+to specify a percentage of the available space.
The
.Fl b
option causes the new pane to be created to the left of or above