Menu

Request: Open files that contain ...

2007-06-19
2012-11-13
  • Nobody/Anonymous

    Hi,

    this is a request for a future version of N++ (if you think it would be useful and can figure out how to do it!)

    Let me see if I can explain this succintly:
    * Add a new entry in the File menu to "Open files that contain..."
    * This then opens a dialog box where you choose a folder, can tick to 'include subdirectories' (in v2) and can enter some text (or even a regex... but perhaps that should wait until v3? ;-) )
    * You enter some text like 'foobar' and click 'OK'
    * N++ then searches the given directory/tree and opens all files that it finds that contain the given text.

    I would find this very useful, for example, when working with multiple php files. If I want to find all files that contain a reference to a given include file, or a certain variable name, I could then use this functionality and have them all open in the editor so I can deal with them.

    Thanks in advance for your feedback!

    C

     
    • Nobody/Anonymous

      That's very cool - I didn't even realise it existed!

      Thank you for pointing it out.

      C

       
    • Nobody/Anonymous

      By the way, I've tried using Windows' (XP) built in search and it doesn't seem to work. It's probably trying to be too clever, or only works with word docs or something...

       
    • Nobody/Anonymous

      Actually, it's ok - I found a free windows grep tool that does the job. If anyone else is interested, take a look:
      http://www.baremetalsoft.com/baregrep/index.php

      C

       
    • Nobody/Anonymous

      Try also the explorer. You can select here in tree a folder. Right click on it and you will find "Find in Files...". It opens the Find in Files dialog with the correct path, the file filter *.* and the current selected word.

      Jens