Your comments

The implementation in NEdit is awesome.  Shame that it's otherwise had so little love for so long.


You can set up reusable filters that do things like filter the current selection if there is one, else the whole window, and return results in place of the original, or in a new window.


Things I've used this for have included

 * passing html through tidy

 * pass current selection through `perl -wc` and return result in a new window.

 * pass current selection (or fall back on whole window) through ssh to a remote server, where it runs in a given directory and libraries, and the result comes back through ssh and into a new window.


Nedit also has two very useful options for ad-hoc stuff.

 * filter the current selection through a command line from a dialog (with history via arrow keys), and replace the original.

 * execute the current line (ie under the cursor) as a shell command, and insert the output just after that line.