Community
    • Login

    How could one in the search exclude files, e.g. all images?

    Scheduled Pinned Locked Moved General Discussion
    10 Posts 4 Posters 1.5k Views 1 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.
    • CletosC Offline
      Cletos
      last edited by

      How could one in the search exclude files, e.g. images, e.g. *.jpg, *.png, etc.(?):
      [IMG]https://i.imgur.com/dXL4vJb.png[/IMG]

      abdulbadiiA 1 Reply Last reply Reply Quote 0
      • abdulbadiiA Offline
        abdulbadii @Cletos
        last edited by

        for now just use the text files filter eg. *.ini *.bat *.c *.sh *.txt etc

        1 Reply Last reply Reply Quote 0
        • guy038G Offline
          guy038
          last edited by guy038

          Hi, @cletos, @abdulbadii and All,

          To exclude some files, with specific extensions, simply use the syntax, in the Filters: zone :

          *.* !*.jpg !*.png

          • Note that your N++ release must be >= 7.8.2

          • Refer also to all posts of the discussion, below :

          https://community.notepad-plus-plus.org/topic/18609/question-regarding-new-find-in-files-filter-excluding-ability-in-version-7-8-2/1

          Best Regards,

          guy038

          1 Reply Last reply Reply Quote 3
          • CletosC Offline
            Cletos
            last edited by

            Hello guy038 and abdulbadii,

            Many thanks!

            So I can insert something like that - . !.jpg !.png - separated by spaces or semicolon.

            And many thanks for the link as well.

            Alan KilbornA 1 Reply Last reply Reply Quote 0
            • Alan KilbornA Offline
              Alan Kilborn @Cletos
              last edited by

              @Cletos said in How could one in the search exclude files, e.g. all images?:

              separated by … semicolon

              What in @guy038 's posting leads you to believe you can use semicolon as a separator??

              1 Reply Last reply Reply Quote 0
              • CletosC Offline
                Cletos
                last edited by

                Absolutely nothing.

                Alan KilbornA 1 Reply Last reply Reply Quote 1
                • Alan KilbornA Offline
                  Alan Kilborn @Cletos
                  last edited by

                  @Cletos

                  Absolutely nothing.

                  Good – because you can’t. :-)

                  1 Reply Last reply Reply Quote 0
                  • CletosC Offline
                    Cletos
                    last edited by

                    Yes, I would think so, too. But I thought a semicolon (and comma) generally is used as a separator (very often) in a search / replace field, may be also for such regular expressions.

                    Alan KilbornA 1 Reply Last reply Reply Quote 0
                    • Alan KilbornA Offline
                      Alan Kilborn @Cletos
                      last edited by

                      @Cletos

                      It’s hard to pick a good separator, because most everything that makes sense to use can also be used in a file name.

                      may be also for such regular expressions.

                      No regular expressions used in this, either!

                      1 Reply Last reply Reply Quote 1
                      • CletosC Offline
                        Cletos
                        last edited by

                        Alright, thank you!

                        1 Reply Last reply Reply Quote 0

                        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