Menu

#31 search on all files in a folder

1.13
pending
nobody
None
Feature
5
2020-01-21
2016-05-22
Anonymous
No

Hi Matthias,

I am using your plugin to do multiple searches at the same time. What I am trying to do is run the search on all files in a folder. I have multiple text log files (40+) that are about 6 gigs. So it’s not possible to open all the files. Can your plugin be used in conjunction with “find in files” function of notepad?

Sincerely,

D. S.

Discussion

  • Mattes H.

    Mattes H. - 2016-05-22

    Hi,

    this question is quite similar to https://sourceforge.net/p/analyseplugin/bugs/26/
    I've made some thoughts about this multiple file search already. But the problem is, The way of displaying it in a suitable way...

    I will further think on your points and revert if I find some way.

    Best regards
    Mattes

     
  • Kevin Tomlinson

    Kevin Tomlinson - 2016-05-22

    Mattes, have you considered just creating a new tab for each search? That way you don't need to modify how results are displayed. I think that would actually be preferable to the way NP++ displays search results in a single tab. With multiple tabs it would be easy to undock them and compare the search results side by side. Comparing searches can be difficult the way NP++ does it because you have to constantly scroll up and down to see each search or open multiple instances of NP++.

     
  • Mattes H.

    Mattes H. - 2016-05-22

    sounds like an idea...
    may be I could connect this with https://sourceforge.net/p/analyseplugin/discussion/1662529/thread/71a734d9/
    Dam the day should have 28 hrs :-)
    Rgds,
    Mattes

     
  • Kevin Tomlinson

    Kevin Tomlinson - 2016-05-23
     
  • Mattes H.

    Mattes H. - 2018-01-07

    I have to release the version 1.11 now and still not finished this topic.
    Hence moving it to the next milestone.

     
  • Mattes H.

    Mattes H. - 2018-01-07
    • Group: 1.9 --> 1.12
     
  • Anonymous

    Anonymous - 2018-02-09

    Love your plugin. Interested in this feature (#31 search on all files in a folder), as my work requires searching for traffic thru multiple log files in a folder.

     
  • Mattes H.

    Mattes H. - 2018-02-10

    Thanks for the honor. :-)
    Do you have a proposal how this could look like?
    Any suggestion would help...

     
  • Anonymous

    Anonymous - 2018-02-11

    Why not utilize the similar "find in files" capability Notepad++ currently utilizes.

    Here is an example a search of "info" in multiple files (selecting search in sub-folders). Folder A has a text file. Folder B is within Folder A and has a text file. Folder C is within Folder B and also has a text file. The Folder path would be displayed first, then all the found lines within the first folder would be displayed. The next subfolder path would then be displayed, then all found lines within that folder would be displayed....etc. --attaching example screenshot

     
  • Mattes H.

    Mattes H. - 2018-02-11

    Yes, this idea is intuitive just looking to the result window.
    I have added a feature "syncronized scroll" which ensures always a repositioning of the search result or the real text where ever the user scrolls in. To make this as fast as possible I memorize each found line position based on the line position in the search result as 1:1 mapping.
    This is becomming much more complex when then resul line position becomes depending on results of other searches.

    I thought as second idea to make them tabbed inside the search window same as they are in npp main edit window. see attached sketch
    Other ideas are surely welcome.

     
  • Anonymous

    Anonymous - 2018-02-16

    If I'm understanding correctly, there would be multiple tabs opened for the found search results, and you wouldn't get a "global view" of all the line items found. I guess someone could then copy the results from each of the tabs into one consolidated page, but that sounds cumbersome if you had a large amount of data.

    I don't know the mechanics behind the coding magic, but the image I have is to see a full global view of the search results, then if you select one of the found line items, the main display would pop open a page or new tab and instantly go to the indexed line in that file, and all of the search results would be automtically character formated/highlighted per you search request (in a perfect world -- lol).

     
  • Mattes H.

    Mattes H. - 2019-12-25

    Ok, I think I understood your request better. (no ticket get lost ;-)
    you would like to make use of the pattern based search including the possibility to review the results in one single result window.
    I could try this as a second ResultView which allows to search on wultiple files with the pattern list.
    Basically I would ask NPP to open all mentioned documents, run the search subsequently and finally show this results in a multi file search view (which has no synced scroll).
    While scrolling this view as you proposed you would see a "titel" per file with tha name.
    The line numbering in the view would still go from top to bottom.
    Doubleclick on a certain file would activate this file in the main view and jump to certain position.
    To avoid conflicts to the active view search adding bookmarks would also not happen.

    Let me know if you have more comments to this concept.
    Regards, Mattes

     
  • Mattes H.

    Mattes H. - 2020-01-21
    • Group: 1.12-preview --> 1.13
     
  • Mattes H.

    Mattes H. - 2020-01-21

    Dear Kevin,
    my time for 1.12 release is running out and the topic is big; I need to move this topic to 1.13

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB