From 0dd4977d5c7a74e3d347076bf6db43e6f2281209 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 31 Mar 2020 11:38:35 +0000 Subject: Add a "second click" key type which is fired for the second click of a double click, even if the timer hasn't expired to confirm it isn't actually a triple click. Provides a way for people who don't care about triple clicks or can make their commands have no side effects to avoid the double click timer delay. --- tmux.1 | 1 - 1 file changed, 1 deletion(-) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index 667242db..e370b4b1 100644 --- a/tmux.1 +++ b/tmux.1 @@ -4422,7 +4422,6 @@ The following variables are available, where appropriate: .It Li "session_last_attached" Ta "" Ta "Time session last attached" .It Li "session_many_attached" Ta "" Ta "1 if multiple clients attached" .It Li "session_name" Ta "#S" Ta "Name of session" -.It Li "session_path" Ta "" Ta "Working directory of session" .It Li "session_stack" Ta "" Ta "Window indexes in most recent order" .It Li "session_windows" Ta "" Ta "Number of windows in session" .It Li "socket_path" Ta "" Ta "Server socket path" -- cgit From 2ca95840d16e2292d3560ec30f4f24dc9e2eedb2 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 31 Mar 2020 11:58:05 +0000 Subject: Add session_path from Chris Ruegge in GitHub issue 2142. --- tmux.1 | 1 + 1 file changed, 1 insertion(+) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index e370b4b1..667242db 100644 --- a/tmux.1 +++ b/tmux.1 @@ -4422,6 +4422,7 @@ The following variables are available, where appropriate: .It Li "session_last_attached" Ta "" Ta "Time session last attached" .It Li "session_many_attached" Ta "" Ta "1 if multiple clients attached" .It Li "session_name" Ta "#S" Ta "Name of session" +.It Li "session_path" Ta "" Ta "Working directory of session" .It Li "session_stack" Ta "" Ta "Window indexes in most recent order" .It Li "session_windows" Ta "" Ta "Number of windows in session" .It Li "socket_path" Ta "" Ta "Server socket path" -- cgit From 2624edde46ad13995d4dd33f7d61fce74ac8f1ac Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 31 Mar 2020 16:53:23 +0000 Subject: Add non-regex search variants to avoid the performance cost for people with large histories or long lines. --- tmux.1 | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index 667242db..a3b2b0f8 100644 --- a/tmux.1 +++ b/tmux.1 @@ -1503,9 +1503,11 @@ The following commands are supported in copy mode: .It Li "scroll-up" Ta "C-y" Ta "C-Up" .It Li "search-again" Ta "n" Ta "n" .It Li "search-backward " Ta "?" Ta "" -.It Li "search-forward " Ta "/" Ta "" .It Li "search-backward-incremental " Ta "" Ta "C-r" +.It Li "search-backward-text " Ta "" Ta "" +.It Li "search-forward " Ta "/" Ta "" .It Li "search-forward-incremental " Ta "" Ta "C-s" +.It Li "search-forward-text " Ta "" Ta "" .It Li "search-reverse" Ta "N" Ta "N" .It Li "select-line" Ta "V" Ta "" .It Li "select-word" Ta "" Ta "" @@ -1514,6 +1516,26 @@ The following commands are supported in copy mode: .It Li "top-line" Ta "H" Ta "M-R" .El .Pp +The search commands come in several varieties: +.Ql search-forward +and +.Ql search-backward +search for a regular expression; +the +.Ql -text +variants search for a plain text string rather than a regular expression; +.Ql -incremental +perform an incremental search and expect to be used with the +.Fl i +flag to the +.Ic command-prompt +command. +.Ql search-again +repeats the last search and +.Ql search-reverse +does the same but reverses the direction (forward becomes backward and backward +becomes forward). +.Pp Copy commands may take an optional buffer prefix argument which is used to generate the buffer name (the default is .Ql buffer -- cgit From e6cddcf752b335cb945bba4619b500b527cfee0a Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 31 Mar 2020 17:13:20 +0000 Subject: Add a -T flag to resize-pane to trim lines below the cursor, moving lines out of the history. GitHub issue 2134. --- tmux.1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index a3b2b0f8..b0fc5600 100644 --- a/tmux.1 +++ b/tmux.1 @@ -2261,7 +2261,7 @@ Rename the current window, or the window at if specified, to .Ar new-name . .It Xo Ic resize-pane -.Op Fl DLMRUZ +.Op Fl DLMRTUZ .Op Fl t Ar target-pane .Op Fl x Ar width .Op Fl y Ar height @@ -2300,6 +2300,9 @@ and unzoomed (its normal position in the layout). .Fl M begins mouse resizing (only valid if bound to a mouse key binding, see .Sx MOUSE SUPPORT ) . +.Pp T +trims all lines below the current cursor position and moves lines out of the +history to replace them. .It Xo Ic resize-window .Op Fl aADLRU .Op Fl t Ar target-window -- cgit From cc8b41f294974cdfb1ddfe3b907da58374ff130f Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 31 Mar 2020 17:14:40 +0000 Subject: Add a way to mark environment variables as "hidden" so they can be used by tmux but are not passed into the environment of new panes. --- tmux.1 | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index b0fc5600..e785cf8b 100644 --- a/tmux.1 +++ b/tmux.1 @@ -565,6 +565,18 @@ Environment variables may be set by using the syntax for example .Ql HOME=/home/user . Variables set during parsing are added to the global environment. +A hidden variable may be set with +.Ql %hidden , +for example: +.Bd -literal -offset indent +%hidden MYVAR=42 +.Ed +.Pp +Hidden variables are not passed to the environment of processes created +by tmux. +See the +.Sx GLOBAL AND SESSION ENVIRONMENT +section. .Pp Commands may be parsed conditionally by surrounding them with .Ql %if , @@ -4711,10 +4723,16 @@ from inside, and the variable with the correct terminal setting of .Ql screen . .Pp +Variables in both session and global environments may be marked as hidden. +Hidden variables are not passed into the environment of new processes and +instead can only be used by tmux itself (for example in formats, see the +.Sx FORMATS +section). +.Pp Commands to alter and view the environment are: .Bl -tag -width Ds .It Xo Ic set-environment -.Op Fl gru +.Op Fl hgru .Op Fl t Ar target-session .Ar name Op Ar value .Xc @@ -4731,8 +4749,10 @@ flag unsets a variable. .Fl r indicates the variable is to be removed from the environment before starting a new process. +.Fl h +marks the variable as hidden. .It Xo Ic show-environment -.Op Fl gs +.Op Fl hgs .Op Fl t Ar target-session .Op Ar variable .Xc @@ -4749,6 +4769,8 @@ Variables removed from the environment are prefixed with If .Fl s is used, the output is formatted as a set of Bourne shell commands. +.Fl h +shows hidden variables (omitted by default). .El .Sh STATUS LINE .Nm -- cgit