aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-11 10:04:27 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-11 10:04:27 +0000
commit64b5f39656f02a7c4cc6d5d4690c9b0ccc3f6c15 (patch)
tree8bed8b653ea30e3ff461250de53d37ab011b4fb2 /tmux.1
parent325e20d76d25685a3a7d9e5042928b2691c7bc8f (diff)
downloadrtmux-64b5f39656f02a7c4cc6d5d4690c9b0ccc3f6c15.tar.gz
rtmux-64b5f39656f02a7c4cc6d5d4690c9b0ccc3f6c15.tar.bz2
rtmux-64b5f39656f02a7c4cc6d5d4690c9b0ccc3f6c15.zip
Add a pipe-pane command to allow a pane to be piped to a shell command, for
example: pipe-pane 'cat >~/out' No arguments stops outputing and closes the pipe; the -o flag toggles a pipe and on and off (useful for key bindings). Suggested by espie@.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.124
1 files changed, 24 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index f4616ed4..40ca8f83 100644
--- a/tmux.1
+++ b/tmux.1
@@ -840,6 +840,30 @@ Move to the next window in the session.
If
.Fl a
is used, move to the next window with a bell, activity or content alert.
+.It Xo Ic pipe-pane
+.Op Fl o
+.Op Fl t Ar target-pane
+.Op Ar command
+.Xc
+.D1 (alias: Ic pipep )
+Pipe any output sent by the program in
+.Ar target-pane
+to a shell command.
+A pane may only be piped to one command at a time, any existing pipe is
+closed before
+.Ar command
+is executed.
+If no
+.Ar command
+is given, the current pipe (if any) is closed.
+.Pp
+The
+.Fl o
+option only opens a new pipe if no previous pipe exists, allowing a pipe to
+be toggled with a single key, for example:
+.Bd -literal -offset indent
+bind-key C-p pipe-pane -o 'cat >>~/output'
+.Ed
.It Xo Ic previous-window
.Op Fl a
.Op Fl t Ar target-session