From: Dale A. <da...@da...> - 2021-05-10 16:13:56
|
I think the Console plugin already has this functionality. If you open a BeanShell in the Console plugin, you can do something like this: runCommandToBuffer(view, "System", "your command"); This will run your command in the System shell in Console, and show the output in a new buffer. You could also write a "commando" xml file (see the Console plugin help file for details) that would give you more control over what processing happens and where the output goes. Dale On Sun, May 9, 2021 at 9:14 PM Eric Le Lay <de...@el...> wrote: > Le Mon, 3 May 2021 22:13:58 +0200, > Thomas Meyer <th...@m3...> a écrit : > > > Hi, > > > > I wanted to pipe a buffer‘s content thru a program while saving. > > This is what I did come up with. It was surpisingly hard to solve: > > https://github.com/thomasmey/jedit-scripts/blob/master/bsh/save-thru.bsh > > > > I wonder if there would have been a more easy way to solve this > > problem! What do you think? > > > > Mfg > > Thomas > > > > > > Hi, > > the beauty plugin lets you define external beautifiers by subclassing > OuterBeautifier to return the command-line (see [1]). Unfortunately > it's very heavy to define a whole plugin just to provide the > command-line to launch. Maybe extending Beauty to create > OuterBeautifiers from the gui with a few placeholders could be useful > to others? > > Cheers, > > [1] https://sourceforge.net/u/kerik-sf/jsbeautifierbeauty/ci/master/tree/ > > > -- > ----------------------------------------------- > jEdit Users' List > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-users > |