From 6cfe356faa48e7429478a5c60d5d0d8e412fd59d Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Thu, 5 Jan 2017 13:28:16 -0500 Subject: [PATCH] Tweaked > sigil to dump command output into the tags region. This allows it to be used for subsequent commands --- TODO.md | 7 +++---- xedit.c | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/TODO.md b/TODO.md index ee8d344..f7769fa 100644 --- a/TODO.md +++ b/TODO.md @@ -2,10 +2,12 @@ Up Next: +* invalid memory accesses while viewing docs/waf * Tag line count should account for wrapped lines * block selection should handle brace-balancing * context sensitive selection of words, commands, line numbers, or filenames. -* ctrl+shift+f should find next occurence of previous search term +* ctrl+alt+f should find next occurence of previous search term +* shift should change direction of search for ctrl+f and right mouse button * check for file changes on save * check for file changes when window regains focus @@ -15,7 +17,6 @@ The Rest: * add a distinct state for pointer move versus drag * Add a SaveAs tag that takes an argument for the filename to save as * Add a GoTo tag for ctags lookup and line number jump -* Use select to check for error strings in exec.c * Add a tools dir to namespace utility scripts only useful inside the editor * implement command diffing logic to optimize the undo/redo log * add command line flags to toggle options (Tabs, Indent, etc..) @@ -39,5 +40,3 @@ The Rest: * Implement fuse file-system backend? * Spell checker integration -* Syntax highlighting -* Implement full featured regex engine diff --git a/xedit.c b/xedit.c index 90e7c25..3b0425a 100644 --- a/xedit.c +++ b/xedit.c @@ -708,7 +708,8 @@ static void cmd_exec(char* cmd) { if (op == '!') { cmdrun(ShellCmd, NULL); } else if (op == '>') { - cmdwrite(ShellCmd, input, &error); + dest = TAGS; + output = cmdwriteread(ShellCmd, input, &error); } else if (op == '|') { output = cmdwriteread(ShellCmd, input, &error); } else if (op == ':') { -- 2.51.0