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. --- config.def.h | 1 + 1 file changed, 1 insertion(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 88c032c..d2fab76 100644 --- a/config.def.h +++ b/config.def.h @@ -67,6 +67,7 @@ static Command cmds[] = { { { "wq", }, cmd_wq, CMD_OPT_FORCE }, { { "write", "w" }, cmd_write, CMD_OPT_FORCE }, { { "xit", }, cmd_xit, CMD_OPT_FORCE }, + { { "!", }, cmd_filter, CMD_OPT_NONE }, { /* array terminator */ }, }; -- cgit v1.2.3