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@.
This commit is contained in:
Nicholas Marriott
2009-10-11 10:04:27 +00:00
parent 325e20d76d
commit 64b5f39656
7 changed files with 193 additions and 1 deletions

View File

@ -28,7 +28,8 @@ SRCS= attributes.c buffer-poll.c buffer.c cfg.c client-fn.c \
cmd-run-shell.c cmd-suspend-client.c cmd-swap-pane.c cmd-swap-window.c \
cmd-switch-client.c cmd-unbind-key.c cmd-unlink-window.c \
cmd-set-environment.c cmd-show-environment.c cmd-choose-client.c \
cmd-up-pane.c cmd-display-message.c cmd-display-panes.c cmd.c \
cmd-up-pane.c cmd-display-message.c cmd-display-panes.c \
cmd-pipe-pane.c cmd.c \
colour.c environ.c grid-view.c grid.c input-keys.c \
imsg.c imsg-buffer.c input.c key-bindings.c key-string.c \
layout-set.c layout.c log.c job.c \