diff options
author | nicm <nicm> | 2023-07-03 16:47:43 +0000 |
---|---|---|
committer | nicm <nicm> | 2023-07-03 16:47:43 +0000 |
commit | 43b841f188c994966e00e59c96581b876652bef1 (patch) | |
tree | b38a012757e13b46d601bf4ff8f266333d60d325 /tmux.1 | |
parent | ac43186dff0f4e92a566987bb9108d6c5421e9ff (diff) |
Add support for marking lines with a shell prompt based on the OSC 133
extension, from Munif Tanjim in GitHub issue 3596.
Diffstat (limited to 'tmux.1')
-rw-r--r-- | tmux.1 | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1787,6 +1787,7 @@ The following commands are supported in copy mode: .It Li "middle-line" Ta "M" Ta "M-r" .It Li "next-matching-bracket" Ta "%" Ta "M-C-f" .It Li "next-paragraph" Ta "}" Ta "M-}" +.It Li "next-prompt" Ta "" Ta "" .It Li "next-space" Ta "W" Ta "" .It Li "next-space-end" Ta "E" Ta "" .It Li "next-word" Ta "w" Ta "" @@ -1800,6 +1801,7 @@ The following commands are supported in copy mode: .It Li "pipe-and-cancel [<command>] [<prefix>]" Ta "" Ta "" .It Li "previous-matching-bracket" Ta "" Ta "M-C-b" .It Li "previous-paragraph" Ta "{" Ta "M-{" +.It Li "previous-prompt" Ta "" Ta "" .It Li "previous-space" Ta "B" Ta "" .It Li "previous-word" Ta "b" Ta "M-b" .It Li "rectangle-on" Ta "" Ta "" @@ -1849,6 +1851,16 @@ repeats the last search and does the same but reverses the direction (forward becomes backward and backward becomes forward). .Pp +The +.Ql next-prompt +and +.Ql previous-prompt +move between shell prompts, but require the shell to emit an escape sequence +(\e033]133;A\e033\e\e) to tell +.Nm +where the prompts are located; if the shell does not do this, these commands +will do nothing. +.Pp Copy commands may take an optional buffer prefix argument which is used to generate the buffer name (the default is .Ql buffer |