• Login
Community
  • Login

Exclude directories from the search

Scheduled Pinned Locked Moved General Discussion
6 Posts 5 Posters 17.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Alexandr Stepanov
    last edited by A Former User Oct 11, 2015, 6:09 PM Oct 10, 2015, 10:46 AM

    Добрый день.
    Ищу вхождение слова в текстовых файлах. Поиск идет в директории с поддиректориями.
    Подскажите пожалуйста, как исключить некоторые поддиректории из поиска ?

    edit from moderator: (translated from g.translator) :

    Good afternoon.
    I am entering words in text files. Search is in a directory with subdirectories.
    Please tell me how to exclude certain subdirectories from the search?

    1 Reply Last reply Reply Quote 2
    • G
      guy038
      last edited by guy038 Oct 11, 2015, 5:04 PM Oct 11, 2015, 5:03 PM

      Hello, Alexandr Stepanov

      I, first, translated your Russian text in English, with Google !

      AFAIK, in the Find in Files dialog of N++ ( CTRL + SHIFT + F ), you can add several filters as, for instance, *.xml *.txt

      But, unfortunately, you can’t write several paths in the directory field nor exclude some paths from search.

      I’m agree with you : it could be a nice improvement, in future releases.


      For instance, the text C:\_683\ C:\_681\ C:\_679 | C:\_681\localization, in Directory field, would search :

      • In the C:\_683\ folder, and its sub-directories, due to the last backslash

      • In the C:\_681\ folder, and its sub-directories, due to the last backslash, and except for the C:\_681\localization folder, written after the vertical line character |

      • In the C:\_679 folder, ONLY, because NO backslash ends the path

      Of course, if the In all sub-folders option was UNCHECKED, it would have priority, to the syntaxes above.


      Right now, it’s still a dream :-((

      Cheers,

      guy038

      1 Reply Last reply Reply Quote 2
      • J
        Jim Dailey
        last edited by Jim Dailey Oct 12, 2015, 1:13 PM Oct 12, 2015, 1:12 PM

        +1 Having an exclude files AND exclude directories feature would be a great addition! For me it would work best if they worked similar to the “Filters:” box for files. That is, they would allow multiple entries with wildcards.

        Being able to exclude file types is useful when you want to use *.* to search all types of files that you care about without having to specify each and every one.

        1 Reply Last reply Reply Quote 0
        • T
          tomas-chrastina
          last edited by Oct 12, 2015, 7:15 PM

          +1

          It would be great to have this feature. Many times I was forced to use Total Commander search instead.

          1 Reply Last reply Reply Quote 0
          • C
            Cees Timmerman
            last edited by Nov 30, 2015, 9:33 AM

            I’ve manually set my project’s .meteor folder to hidden so it will only be included when “In hidden folders” is checked.

            1 Reply Last reply Reply Quote 1
            • G
              guy038
              last edited by Nov 30, 2015, 8:31 PM

              Hello Cees,

              Very clever solution, Indeed ! Thanks for sharing it :-) I haven’t thought of that simple and useful work-around, yet !

              Best Regards,

              guy038

              1 Reply Last reply Reply Quote 2
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors