It would be great to be able to add custom extensions to Te

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
noah
Posts: 7
Joined: Thu May 12, 2005 6:17 pm

It would be great to be able to add custom extensions to Te

Post by noah »

Rather than exposing some library API or COM interface the simplest thing would be to add a STDIN/STDOUT filter that could be applied to any selected text. This would allow powerful extension yet require almost no learning on the part of the user.

For example, I could use TextPad's Tool feature to setup a custom program to be used as a filter. To use the filter I would select a block of text in TextPad; then I would trigger the filter from the Tools menu. TextPad would start my program and pass the selected text to the STDIN. My program would process the text then print results back on STDOUT. Finally, TextPad would take the output from STDOUT of my program and use it to replace the selected text in my document.

You could write extensions in any scripting language. I'm surprised that TextPad's Tool feature cannot already do this. It's almost there. It can pass some arguments to an external tool and it can capture output, but this doesn't give you enough to write a filter.

Yours,
Noah
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Post Reply