From 461217d0f0b347b688d6f41dcc997b984951aac1 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 6 Jan 2017 11:57:03 +0000 Subject: Incremental search in copy mode (on for emacs keys by default) - much the same as normal searching but updates the cursor position and marked search terms as you type. C-r and C-s in the prompt repeat the search, once finished searching (with Enter), N and n work as before. --- tmux.1 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index 9c47dee1..be61f01c 100644 --- a/tmux.1 +++ b/tmux.1 @@ -1020,7 +1020,7 @@ Key tables may be viewed with the command. .Pp The following commands are supported in copy mode: -.Bl -column "CommandXXXXXXXXXXXXXXXXX" "viXXXXXXXXXX" "emacs" -offset indent +.Bl -column "CommandXXXXXXXXXXXXXXXXXXXXXXXXXX" "viXXXXXXXXXX" "emacs" -offset indent .It Sy "Command" Ta Sy "vi" Ta Sy "emacs" .It Li "append-selection" Ta "" Ta "" .It Li "append-selection-and-cancel" Ta "A" Ta "" @@ -1067,8 +1067,10 @@ The following commands are supported in copy mode: .It Li "scroll-down" Ta "C-e" Ta "C-Down" .It Li "scroll-up" Ta "C-y" Ta "C-Up" .It Li "search-again" Ta "n" Ta "n" -.It Li "search-backward " Ta "?" Ta "C-r" -.It Li "search-forward " Ta "/" Ta "C-s" +.It Li "search-backward " Ta "?" Ta "" +.It Li "search-forward " Ta "/" Ta "" +.It Li "search-backward-incremental " Ta "" Ta "C-r" +.It Li "search-forward-incremental " Ta "" Ta "C-s" .It Li "search-reverse" Ta "N" Ta "N" .It Li "select-line" Ta "V" Ta "" .It Li "start-of-line" Ta "0" Ta "C-a" @@ -3730,7 +3732,7 @@ session option. Commands related to the status line are as follows: .Bl -tag -width Ds .It Xo Ic command-prompt -.Op Fl 1 +.Op Fl 1i .Op Fl I Ar inputs .Op Fl p Ar prompts .Op Fl t Ar target-client @@ -3780,6 +3782,9 @@ but any quotation marks are escaped. .Fl 1 makes the prompt only accept one key press, in this case the resulting input is a single character. +.Fl i +executes the command every time the prompt input changes instead of when the +user exits the command prompt. .Pp The following keys have a special meaning in the command prompt, depending on the value of the -- cgit