Re: How to execute external program from jedit and catch output
Eric Ladner <[email protected]>
| Newsgroups | gmane.editors.jedit.user |
|---|---|
| Message-ID | <CAJdJeij=xMAW0x3hj2t-x-ZTN3cxN02vZ+FFwXmX_1QqvtGn-w@mail.gmail.com> |
Look at the TextFilter plugin for jEdit. It looks like it should do exactly what you need as far as the sending to external command and returning to buffer (with options on what to send and where to put it when it gets back). On Thu, Feb 23, 2017 at 12:29 PM Dalibor Petricevic < [email protected]> wrote: > Hello, > > this is a real-world situation: I'm working on a text file of some kind, > selected portion of text in active buffer and want to execute external > proces (program.exe), pass selected text to it, capture its output and > replace selected text in buffer with that output. > > How can I do that? > > Also, I would like to "save" that [something] (execute, feed selection > from buffer to process, catch output, replace selected text) and pin it to > toolbar or context menu. > > Tnx! > D > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot-- > ----------------------------------------------- > jEdit Users' List > [email protected] > https://lists.sourceforge.net/lists/listinfo/jedit-users > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot -- ----------------------------------------------- jEdit Users' List [email protected] https://lists.sourceforge.net/lists/listinfo/jedit-users