Sorting text in Oxygen

Having trouble installing Oxygen? Got a bug to report? Post it all here.
xinelo
Posts: 33
Joined: Wed Oct 04, 2006 6:25 pm

Sorting text in Oxygen

Post 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
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Sorting text in Oxygen

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
mafprod
Posts: 1
Joined: Thu Jul 25, 2013 5:28 pm

Re: Sorting text in Oxygen

Post 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.
xinelo
Posts: 33
Joined: Wed Oct 04, 2006 6:25 pm

Re: Sorting text in Oxygen

Post 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
Post Reply