aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-02 20:00:45 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-09 20:29:23 +0100
commitacc911ae724d42aaa2fecaa6f9b30651a91ad240 (patch)
tree69abdd4becf0c0e8cac28308da28c36b49cbfa41 /src/parser.cpp
parenta395c9df173b53e095f1a20d6bc583063cdb60c7 (diff)
downloadsciteco-acc911ae724d42aaa2fecaa6f9b30651a91ad240.tar.gz
implemented EC command (execute operating system command) in spawn.cpp
powerful command for filtering a SciTECO buffer through an external program. It will be described in the sciteco(7) man pages. The implementation uses an asynchronous background process with pipes but is platform independant thanks to glib's g_spawn functions, GIOChannels and event loops. There are however platform differences in how the operating system command is interpreted/parsed.
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 17a11b9..bbaad14 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -37,6 +37,7 @@
#include "parser.h"
#include "symbols.h"
#include "search.h"
+#include "spawn.h"
#include "cmdline.h"
//#define DEBUG
@@ -1811,6 +1812,7 @@ StateECommand::StateECommand() : State()
{
transitions['\0'] = this;
transitions['B'] = &States::editfile;
+ transitions['C'] = &States::executecommand;
transitions['M'] = &States::macro_file;
transitions['S'] = &States::scintilla_symbols;
transitions['Q'] = &States::eqcommand;