jEdit Community - Resources for users of the jEdit Text Editor
An 'all' type feature would enhance productivity.
Submitted by jlturriff on Sunday, 19 June, 2022 - 09:47
Several other text editors I have used have an 'all' command which hides all lines that do not match a pattern. This does not rely on fold levels, so one can filter the edit view to show just the lines that contain e.g. a particular variable or phrase. For example, in Xedit the view might look something like this:

ELBERT NAMES A0 V 255 Trunc=255 Size=17 Line=8 Col=1 Alt=0
00000 * * * Top of File * * *
00001 :nick.O :Composer.Puccini:name.LaBoheme
00002 :addr.O1
00003
00004 :nick.C :Composer.Grieg:name.Peer Gynt Suites
00005 :addr.C1
00006
00007 :nick.C :Composer.Ravel:name.Piano Concerto in G Major
00008 :addr.C4
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7...
00009
00010 :nick.C :Composer.Offenbach:name.Les Bavards
00011 :addr.C3
00012
00013 :nick.O :Composer.Verdi:name.Aida
00014 :addr.O2
00015
00016 :nick.C :Composer.Mozart:name.Eine kleine Nachtmusik
00017 :addr.C2
====> all/nick.C/
X E D I T 1 File

before applying the all command; after applying it would look like this:

ELBERT NAMES A0 V 255 Trunc=255 Size=17 Line=4 Col=1 Alt=0
00000 * * * Top of File * * *
00001 -------------------- 3 line(s) not displayed --------------------
00004 :nick.C :Composer.Grieg:name.Peer Gynt Suites
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7...
00005 -------------------- 2 line(s) not displayed --------------------
00007 :nick.C :Composer.Ravel:name.Piano Concerto in G Major
00008 -------------------- 2 line(s) not displayed --------------------
00010 :nick.C :Composer.Offenbach:name.Les Bavards
00011 -------------------- 5 line(s) not displayed --------------------
00016 :nick.C :Composer.Mozart:name.Eine kleine Nachtmusik
00017 -------------------- 1 line(s) not displayed --------------------
00018 * * * End of File * * *
====>
X E D I T 1 File

Xedit allows the 'N line(s) not displayed' lines to be suppressed, so that the view would look something like this after using all:

ELBERT NAMES A0 V 255 Trunc=255 Size=17 Line=8 Col=1 Alt=0
00000 * * * Top of File * * *
00004 :nick.C :Composer.Grieg:name.Peer Gynt Suites
00007 :nick.C :Composer.Ravel:name.Piano Concerto in G Major
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7...
00010 :nick.C :Composer.Offenbach:name.Les Bavards
00016 :nick.C :Composer.Mozart:name.Eine kleine Nachtmusik
====>
X E D I T 1 File

My experience with jEdit is limited, but there appears to be no way to use the Fold methods to achieve this functionality.

Leslie
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
NB: Hypersearch does not provide this capability
by jlturriff on Sun, 19/06/2022 - 09:51
I forgot to mention that while jEdit provides Hypersearch, the text in that window is not editable, so it is not a solution to this feature request.
User login
Browse archives
« August 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
31
 
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   95567
Context Free Art (*.cfdg)   0.31   46061
BBEdit scheme   1.0   18600
JBuilder scheme   .001   18500
ColdFusion scheme   1.0   18030
R Edit Mode - extensive version   0.1   17479
Advanced HTML edit mode   1.0   16212
Matlab Edit Mode   1.0   16074
jEdit XP icons   1.0   15235
XP icons for jEdit   1.1   14298