You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, July 21st 2006, 12:12am

applying text filters to selection in kate

I am tring out kate as a possible alternative to nedit, which
I have used for years. The one thing I haven't figured out
how to do is to add simple text filters which act on the
selection. So for example, I would like to select a region
of text and then call a filter to do something like
convert to upper case, or format to 60 columns, or to sort,...
Linux provides the text filters to do this (tr, fmt, sort,...)
so all I need is a simple way to capture the selection,
run it through the right filter, and replace the selection
with the output. These are things I do a lot so I want to
be able to bind them to a keystroke.

Kate seems to offer a variety of external hooks (plugins,
external tools, and scripts), but I wasn't able to see
how to easily do this with any of them.

Any advice is appreciated. If there is a better forum in
which to post the question, that would good to learn also.

Thanks.

-- DNA