sort by column
Scott Woodford
woodford at crystal.cirrus.com
Tue Nov 14 23:31:31 CET 2006
What I do is the following:
1. select the text to be sorted
2. choose Shell->Filter Selection
3. enter "sort -k#" into the dialog box (where # is the column number to
sort by)
I've been meaning to make a macro to sort by the column chosen by a
mouse click, but haven't figured out yet how to wait for the position of
a mouse click in a macro.
-Scott
------------------------------
Message: 6
Date: Tue, 14 Nov 2006 08:40:33 -0800
From: wayne.lydecker at l-3com.com
Subject: sort by column
To: discuss at nedit.org
Message-ID: <4559F181.8090804 at L-3Com.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Nedit has a neat feature that allow me to sort a column. What
I'd like to be able to do is sort BY column. That is, highlight
a column (e.g. numbers) and have the lines sorted based on the
values in the column. It's amazing how often I need a feature
like that. Is there a macro that does this?
Thanks,
-- Wayne.
p.s. I looked around the nedit.org site and could not find a
list of macros. There's a menu item for resources that states
there are macros, but I cannot find any in the ftp/contrib
directory.
More information about the Discuss
mailing list