mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
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:
5
tmux.h
5
tmux.h
@ -715,6 +715,10 @@ struct window_pane {
|
||||
|
||||
struct input_ctx ictx;
|
||||
|
||||
int pipe_fd;
|
||||
struct buffer *pipe_buf;
|
||||
size_t pipe_off;
|
||||
|
||||
struct screen *screen;
|
||||
struct screen base;
|
||||
|
||||
@ -1394,6 +1398,7 @@ extern const struct cmd_entry cmd_new_window_entry;
|
||||
extern const struct cmd_entry cmd_next_layout_entry;
|
||||
extern const struct cmd_entry cmd_next_window_entry;
|
||||
extern const struct cmd_entry cmd_paste_buffer_entry;
|
||||
extern const struct cmd_entry cmd_pipe_pane_entry;
|
||||
extern const struct cmd_entry cmd_previous_layout_entry;
|
||||
extern const struct cmd_entry cmd_previous_window_entry;
|
||||
extern const struct cmd_entry cmd_refresh_client_entry;
|
||||
|
Reference in New Issue
Block a user