Re: Pipe buffer content thru program before save
Eric Le Lay <[email protected]>
| Newsgroups | gmane.editors.jedit.user |
|---|---|
| Message-ID | <[email protected]> |
Le Mon, 3 May 2021 22:13:58 +0200, Thomas Meyer <[email protected]> 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 [email protected] https://lists.sourceforge.net/lists/listinfo/jedit-users