Community
    • Login

    Exclude directories from the search

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 5 Posters 18.3k Views 3 Watching
    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.
    • Alexandr StepanovA Offline
      Alexandr Stepanov
      last edited by A Former User

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

      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
      • guy038G Offline
        guy038
        last edited by guy038

        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
        • Jim DaileyJ Offline
          Jim Dailey
          last edited by Jim Dailey

          +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
          • tomas-chrastinaT Offline
            tomas-chrastina
            last edited by

            +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
            • Cees TimmermanC Offline
              Cees Timmerman
              last edited by

              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
              • guy038G Offline
                guy038
                last edited by

                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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors