jEdit Community - Resources for users of the jEdit Text Editor
Ability to open all files listed in Edit > Find results window
Submitted by a992400 on Thursday, 10 February, 2005 - 22:07
When a user does Edit > Find and searches for all files within one or more directories, their search results can contain multiple files. But there does not appear to be an easy way to open up all of those files at once. In the Find results window (where all the files and matching lines are listed), the user should be able to right-click within the window and have an option to open all files.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
I've modified the 'HyperSearc
by Anonymous on Fri, 04/03/2005 - 13:02
I've modified the 'HyperSearch_Results_to_Buffer' macro so it will open all file found in search result. Just save the code below as 'Open_HyperSearch_Results.bsh' under your macro directory.

openHypersearchResults(View view){
    hs = view.getDockableWindowManager().getDockableWindow("hypersearch-results");
    if (hs == null)
    {
        Macros.error(view, "The 'HyperSearch Results' window is not open.");
        return;
    }

    root = hs.getTreeModel().getRoot();
    if(root == null)
    {
        Macros.error(view, "No HyperSearch matches.");
        return;
    }

    node = root.getFirstChild();
    while(node != null)
    {
        path = node.getUserObject().toString();
        if(path != null)
            jEdit.openFile(view,path);
        node = node.getNextSibling();
    }
}

openHypersearchResults(view);

Hope this helps someone.

With the multiline search and replace feature in JEdit4.3, I think there's no need to keep my EditPlus now Smiling.
 
Sorry, change the line [16] t
by Anonymous on Fri, 04/03/2005 - 22:33
Sorry, change the line [16] to the following code in order to work:
    node = root.getFirstChild().getFirstChild();
User login
Browse archives
« April 2014  
MoTuWeThFrSaSu
 
1
3
4
5
6
7
8
9
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
33%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1092
Syndication
file   ver   dls
Context Free Art (*.cfdg)   0.31   36289
German Localization light   4.4.2.1   30306
R Edit Mode - extensive version   0.1   10602
Advanced HTML edit mode   1.0   10060
JBuilder scheme   .001   10026
Matlab Edit Mode   1.0   9925
BBEdit scheme   1.0   9583
ColdFusion scheme   1.0   9576
jEdit XP icons   1.0   9385
XP icons for jEdit   1.1   9369