summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tmux/tmux.1')
-rw-r--r--usr.bin/tmux/tmux.128
1 files changed, 26 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1
index 418621a9f76..8538ca6af33 100644
--- a/usr.bin/tmux/tmux.1
+++ b/usr.bin/tmux/tmux.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tmux.1,v 1.958 2024/10/01 10:10:29 nicm Exp $
+.\" $OpenBSD: tmux.1,v 1.959 2024/10/04 07:03:08 nicm Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
.\"
@@ -14,7 +14,7 @@
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: October 1 2024 $
+.Dd $Mdocdate: October 4 2024 $
.Dt TMUX 1
.Os
.Sh NAME
@@ -1801,6 +1801,7 @@ Exit copy mode.
Clear the current selection.
.It Xo
.Ic copy-end-of-line
+.Op Fl CP
.Op Ar prefix
.Xc
Copy from the cursor position to the end of the line.
@@ -1808,11 +1809,13 @@ Copy from the cursor position to the end of the line.
is used to name the new paste buffer.
.It Xo
.Ic copy-end-of-line-and-cancel
+.Op Fl CP
.Op Ar prefix
.Xc
Copy from the cursor position and exit copy mode.
.It Xo
.Ic copy-pipe-end-of-line
+.Op Fl CP
.Op Ar command
.Op Ar prefix
.Xc
@@ -1822,6 +1825,7 @@ Copy from the cursor position to the end of the line and pipe the text to
is used to name the new paste buffer.
.It Xo
.Ic copy-pipe-end-of-line-and-cancel
+.Op Fl CP
.Op Ar command
.Op Ar prefix
.Xc
@@ -1830,16 +1834,19 @@ Same as
but also exit copy mode.
.It Xo
.Ic copy-line
+.Op Fl CP
.Op Ar prefix
.Xc
Copy the entire line.
.It Xo
.Ic copy-line-and-cancel
+.Op Fl CP
.Op Ar prefix
.Xc
Copy the entire line and exit copy mode.
.It Xo
.Ic copy-pipe-line
+.Op Fl CP
.Op Ar command
.Op Ar prefix
.Xc
@@ -1849,6 +1856,7 @@ Copy the entire line and pipe the text to
is used to name the new paste buffer.
.It Xo
.Ic copy-pipe-line-and-cancel
+.Op Fl CP
.Op Ar command
.Op Ar prefix
.Xc
@@ -1857,6 +1865,7 @@ Same as
but also exit copy mode.
.It Xo
.Ic copy-pipe
+.Op Fl CP
.Op Ar command
.Op Ar prefix
.Xc
@@ -1866,6 +1875,7 @@ Copy the selection, clear it and pipe its text to
is used to name the new paste buffer.
.It Xo
.Ic copy-pipe-no-clear
+.Op Fl CP
.Op Ar command
.Op Ar prefix
.Xc
@@ -1874,6 +1884,7 @@ Same as
but do not clear the selection.
.It Xo
.Ic copy-pipe-and-cancel
+.Op Fl CP
.Op Ar command
.Op Ar prefix
.Xc
@@ -1882,11 +1893,13 @@ Same as
but also exit copy mode.
.It Xo
.Ic copy-selection
+.Op Fl CP
.Op Ar prefix
.Xc
Copies the current selection.
.It Xo
.Ic copy-selection-no-clear
+.Op Fl CP
.Op Ar prefix
.Xc
Same as
@@ -1894,6 +1907,7 @@ Same as
but do not clear the selection.
.It Xo
.Ic copy-selection-and-cancel
+.Op Fl CP
.Op Ar prefix
(vi: Enter)
(emacs: M-w)
@@ -2341,6 +2355,16 @@ variants of some commands exit copy mode after they have completed (for copy
commands) or when the cursor reaches the bottom (for scrolling commands).
.Ql -no-clear
variants do not clear the selection.
+All the copy commands can take the
+.Fl C
+and
+.Fl P
+flags.
+The
+.Fl C
+flag suppresses setting the terminal clipboard when copying, while the
+.Fl P
+flag suppresses adding a paste buffer with the text.
.Pp
The next and previous word keys skip over whitespace and treat consecutive
runs of either word separators or other letters as words.