From d37f266524803de945af25c4e9fff8209e927374 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 12 Nov 2014 22:57:06 +0000 Subject: Add -b to splitw like joinw, from Felix Rosencrantz. --- tmux.1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index f13bdf06..0ff611d0 100644 --- a/tmux.1 +++ b/tmux.1 @@ -1757,7 +1757,7 @@ is given and the selected window is already the current window, the command behaves like .Ic last-window . .It Xo Ic split-window -.Op Fl dhvP +.Op Fl bdhvP .Op Fl c Ar start-directory .Oo Fl l .Ar size | @@ -1781,6 +1781,10 @@ 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. +The +.Fl b +option causes the new pane to be created to the left of or above +.Ar target-pane . All other options have the same meaning as for the .Ic new-window command. -- cgit From 575fd1e322b15a3e9f0d1892ebb82c2e8a30ba46 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 2 Dec 2014 23:19:45 +0000 Subject: Permit option values to be used in formats. --- tmux.1 | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index 0ff611d0..949a77b0 100644 --- a/tmux.1 +++ b/tmux.1 @@ -3039,12 +3039,17 @@ and .Ql } , for example .Ql #{session_name} . -Some variables also have an shorter alias such as -.Ql #S . +The possible variables are listed in the table below, or the name of a +.Nm +option may be used for an option's value. +Some variables have a shorter alias such as +.Ql #S , +and .Ql ## is replaced by a single .Ql # . -Conditionals are also accepted by prefixing with +.Pp +Conditionals are available by prefixing with .Ql \&? and separating two alternatives with a comma; if the specified variable exists and is not zero, the first alternative @@ -3055,7 +3060,15 @@ will include the string .Ql attached if the session is attached and the string .Ql not attached -if it is unattached. +if it is unattached, or +.Ql #{?automatic-rename,yes,no} +will include +.Ql yes +if +.Ic automatic-rename +is enabled, or +.Ql no +if not. A limit may be placed on the length of the resultant string by prefixing it by an .Ql = , -- cgit From 54ca7b230d08aae0b2028f3f82a259963017c167 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 2 Dec 2014 23:39:02 +0000 Subject: Add -F to if-shell to allow it to be used to check for format or option values rather than executing a command. --- tmux.1 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index 949a77b0..63ab82ba 100644 --- a/tmux.1 +++ b/tmux.1 @@ -3589,7 +3589,7 @@ Miscellaneous commands are as follows: .It Ic clock-mode Op Fl t Ar target-pane Display a large clock. .It Xo Ic if-shell -.Op Fl b +.Op Fl bF .Op Fl t Ar target-pane .Ar shell-command command .Op Ar command @@ -3602,7 +3602,9 @@ if returns success or the second .Ar command otherwise. -Before being executed, shell-command is expanded using the rules specified in the +Before being executed, +.Ar shell-command +is expanded using the rules specified in the .Sx FORMATS section, including those relevant to .Ar target-pane . @@ -3610,6 +3612,13 @@ With .Fl b , .Ar shell-command is run in the background. +.Pp +If +.Fl F +is given, +.Ar shell-command +is not executed but considered success if neither empty nor zero (after formats +are expanded). .It Ic lock-server .D1 (alias: Ic lock ) Lock each client individually by running the command specified by the -- cgit