Community
    • Login

    Find in Files not giving accurate results

    Scheduled Pinned Locked Moved General Discussion
    findfilesrandomresults
    3 Posts 3 Posters 757 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.
    • ePCAE
      ePCA
      last edited by

      Re: Find in Files not working

      I have only recently noticed that this is not giving results that seem correct. I used to use this feature a lot. (It is the main thing that brought me to Notepad++ over other editors.) However, no matter what I do now, I cannot get it to give me correct results.

      For example, when I enter simple words like: ‘import’, ‘true’, or ‘delete’ (no quotes), it returns some results and not other (confirmed occurrences) and some simply blank lines. I am only using the defaults, no matching case, no wildcards, etc. Running the simplest tests…

      For example, for the first search, I have confirmed there is more than one “delete” in my files.
      For the second search, the second file, has “Import” in the first cell, but it doesn’t show up. Note line 222 is simply blank.
      3679b657-218d-4cda-88e6-bcfd4ebf9f9c-image.png

      Here is a pic one of my searches:
      b6f90526-c2ef-468f-8874-0c809a5e3517-image.png

      Debug:
      Notepad++ v8.4.2 (64-bit)
      Build time : May 29 2022 - 16:47:30
      Path : C:\Program Files\Notepad++\notepad++.exe
      Command Line : $COMMAND_LINE_PLACEHOLDER$
      Admin mode : OFF
      Local Conf mode : OFF
      Cloud Config : OFF
      OS Name : Windows 10 Enterprise (64-bit)
      OS Version : 20H2
      OS Build : 19042.1706
      Current ANSI codepage : 1252
      Plugins :
      mimeTools (2.8)
      NppConverter (4.4)
      NppExport (0.4)

      Any ideas? Thanks.

      Terry RT PeterJonesP 2 Replies Last reply Reply Quote 0
      • Terry RT
        Terry R @ePCA
        last edited by

        @epca said in Find in Files not giving accurate results:

        Any ideas? Thanks.

        The search results reference a XLS file. That would suggest it is an Excel Binary file. The “binary” reference should be enough to give you doubts on the effectiveness of a search within that structure.

        Notepad++ is a text editor and whilst it will work on binary file there are no guarantees the result you want are achievable.

        Terry

        1 Reply Last reply Reply Quote 3
        • PeterJonesP
          PeterJones @ePCA
          last edited by

          @epca ,

          For more on binary files, and why it is unreasonable to expect a text editor to be able to search a binary spreadsheet (.xlsx) or word processor document (.docx) or PDF or any other such binary file, see this FAQ

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