Page 1 of 1

Sorting text in Oxygen

Posted: Fri Feb 08, 2013 1:51 pm
by xinelo
Hi there,

It might not be very orthodox, but I tend to use Oxygen as my all-purpose editor, and that includes dealing with plain text. Sorry if someone is offended! One of the reasons is its great support for regular expressions.

One of the operations that I frequently need to do is to sort lists of items. For that (and , I really need to switch to another text editor or Excel, because I don't know how or whether it can be done in Oxygen. So hence the question: Can it?

Example. Input:

this
is
an
unsorted
list

Output:

an
is
list
this
unsorted

Thanks a lot!

Cheers, Manuel

Re: Sorting text in Oxygen

Posted: Fri Feb 08, 2013 5:01 pm
by adrian
Hi,

I'm afraid that's not possible for plain text. For XML it's possible in Grid mode with tabular data structures.

If you have a bit of Java programming knowledge you could probably implement this yourself as an Oxygen plugin for the Text mode.
http://www.oxygenxml.com/oxygen_sdk.htm ... er_Plugins
There are some simple plugins that can serve as examples.

Regards,
Adrian

Re: Sorting text in Oxygen

Posted: Thu Jul 25, 2013 5:54 pm
by mafprod
I'm in a similar position as the OP. For my job i spend a lot of time in Oxygen for XML related stuff, but since my job involves interfacing and translations, i also use it a lot for plain text.

For perl i'm able to create an external command that uses perltidy to check and format the script, but this acts only on the whole file. It would be great if you could use an external command on only the selected text. If Oxygen would actually allow me to define external commands, it would for me even replace emacs and vi completely.

Re: Sorting text in Oxygen

Posted: Thu Jul 25, 2013 6:47 pm
by xinelo
I don't have any knowledge to create plugins, so what I normally do is to sort the text in Excel or UltraEdit, and then paste it in Oxgyen to keep working with it.

Cheers, Manuel