summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2015-04-10 16:00:08 +0000
committernicm <nicm>2015-04-10 16:00:08 +0000
commit0cd55eb1e7823a75810b7f43f53b6266cb8b0bc0 (patch)
treee73e29a48ca3db93d292f709198ff5ef20d4fead /tmux.1
parent009a5e4213a04555be0fb654f80fe8685082ba20 (diff)
Add a -x flag to copy-selection, append-selection and start-named-buffer
to prevent it exiting copy mode after copying. From J Raynor with a few tweaks by me.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.118
1 files changed, 15 insertions, 3 deletions
diff --git a/tmux.1 b/tmux.1
index 2764626e..abdeba54 100644
--- a/tmux.1
+++ b/tmux.1
@@ -987,15 +987,27 @@ command and keys modified or removed with
.Ic bind-key
and
.Ic unbind-key .
-One command accepts an argument,
-.Ic copy-pipe ,
-which copies the selection and pipes it to a command.
+If
+.Ic append-selection ,
+.Ic copy-selection ,
+or
+.Ic start-named-buffer
+are given the
+.Fl x
+flag,
+.Nm
+will not exit copy mode after copying.
+.Ic copy-pipe
+copies the selection and pipes it to a command.
For example the following will bind
+.Ql C-w
+not to exit after copying and
.Ql C-q
to copy the selection into
.Pa /tmp
as well as the paste buffer:
.Bd -literal -offset indent
+bind-key -temacs-copy C-w copy-selection -x
bind-key -temacs-copy C-q copy-pipe "cat >/tmp/out"
.Ed
.Pp