jEdit Community - Resources for users of the jEdit Text Editor
Macro to sort lines like in Ultraedit?
Submitted by pdfneuro on Wednesday, 15 December, 2004 - 13:57
Hi, I just upload a jedit macro which is able to sort lines in ascending/descending order. Available options are
  • Remove duplicated lines
  • Ignore case sorting
Check it at http://community.jedit.org/?q=filestore/download/1943 and tell me if you find it usefull. Enjoy Smiling
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Remove Duplicate Lines dosent work for me
by Anonymous on Wed, 15/12/2004 - 15:56
Thanks for the macro. but i cant get Remove Duplicates to work.
I am using jEdit 4.2 final, Win XP, JDK 1.4.2_06.

one more thing is sort button dosent look normal.
 
FYI, TextTools should do all
by Anonymous on Wed, 15/12/2004 - 19:03
FYI, TextTools should do all of what this macro does, though it might take multiple steps.

For case-insensitive sort, use TextTools > Sort...

-Ollie
 
So it was already there.. and this also?
by pdfneuro on Thu, 16/12/2004 - 09:16
Thanks for the info.

Anyway, I practice a little Macro coding.. which is not a bad things.

And what about the cases macros I made? Are tey also already implemented? If yes, please tell me

Thanks Smiling
 
Where can I find the TextTools?
by p8er on Thu, 11/05/2006 - 08:03
Where is the TextTools mentioned above?
Which menu? or a Plugin?

Would you like to tell this?
 
TextTools is a plugin
by scaRFhogg on Thu, 05/04/2012 - 10:41
TextTools is a plugin
 
Macro to sort lines like in Ultraedit - bug?
by pdfneuro on Wed, 15/12/2004 - 17:19
Hi,

My configuration is jEdit 4.2 final Win XP, JDK 1.5.0

Is it possible that you try with java 1.5.0 and send me a feed back?

What do you mean by "sort button doesn't look normal?"
I used Eclipse 'Visual Editor to make the dialog box and everything seems normal. Strange.

regards,

Pascal
 
Ok i tried the jedit With JDK1.5
by Anonymous on Wed, 15/12/2004 - 22:24
OK I tried the jedit With JDK1.5. it still looked the same when I looked at the source code it made sense.


sortJButton.setSelected(true);


the above line was making it look different from all other buttons.
I think its very trivial thing. and doesn't require any more discussion.
 
bug fixed
by pdfneuro on Thu, 16/12/2004 - 09:32
Hi,

I have bug fixed the macro.
The updated file is still available here : http://community.jedit.org/?q=filestore/download/1943

Indeed, java 1.4.2 doesn't allow to call new TreeSet(Comparator c) with a null comparator.. but java 1.5.0 does.

Thanks for pointing that to me.

Bye Smiling
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293