From 1244aeae5c603593aa71df4b67974c11ea1576cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 16 May 2015 18:01:13 +0200 Subject: Filter command :! If no range is given then stdin is passed through which allows interactive usage as in :!ls -1 *.c | slmenu For this to work the command needs to use stderr for its user interface and write any data for vis to stdout. --- editor.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editor.h') diff --git a/editor.h b/editor.h index 7104d01..d985755 100644 --- a/editor.h +++ b/editor.h @@ -2,6 +2,7 @@ #define EDITOR_H #include +#include #include #include @@ -244,6 +245,7 @@ struct Editor { Mode *mode_prev; /* previsouly active user mode */ Mode *mode_before_prompt; /* user mode which was active before entering prompt */ volatile bool running; /* exit main loop once this becomes false */ + volatile sig_atomic_t cancel_filter; /* abort external command */ }; Editor *editor_new(Ui*); -- cgit v1.2.3