diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-19 17:49:53 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-19 17:49:53 +0000 |
commit | c3859d1df1fbdb63b8aab15d10266e26c5e428eb (patch) | |
tree | 8e83d8986670137d3c6e4f54aa1f1dbb92533ae1 /tmux.1 | |
parent | 5a5e285be8caf98c7777a2afa717d04ac44c9f75 (diff) | |
download | rtmux-c3859d1df1fbdb63b8aab15d10266e26c5e428eb.tar.gz rtmux-c3859d1df1fbdb63b8aab15d10266e26c5e428eb.tar.bz2 rtmux-c3859d1df1fbdb63b8aab15d10266e26c5e428eb.zip |
Add copy-pipe mode command to copy selection and also pipe to a command.
Diffstat (limited to 'tmux.1')
-rw-r--r-- | tmux.1 | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -854,7 +854,7 @@ The following keys are supported as appropriate for the mode: .It Li "Start of line" Ta "0" Ta "C-a" .It Li "Start selection" Ta "Space" Ta "C-Space" .It Li "Top of history" Ta "g" Ta "M->" -.It Li "Transpose chars" Ta "" Ta "C-t" +.It Li "Transpose characters" Ta "" Ta "C-t" .El .Pp The next and previous word keys use space and the @@ -916,6 +916,17 @@ command and keys modified or removed with .Ic bind-key and .Ic unbind-key . +One command in accepts an argument, +.Ic copy-pipe , +which copies the selection and pipes it to a command. +For example the following will bind +.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-q copy-pipe "cat >/tmp/out" +.Ed .Pp The paste buffer key pastes the first line from the top paste buffer on the stack. |