• Login
Community
  • Login

Search in files

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
8 Posts 5 Posters 404 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.
  • S
    stefan-vienna
    last edited by Jan 15, 2021, 9:10 AM

    Is this is a bug?
    Precondition: I have a file open in notepad++ and the file content is currently out of sync.
    Problem: When I search via find-in-files and the opened file is in the same folder, then only the out of sync content for this file is searched. I would expect that it is searched the complete content of the folder, independent what is open.

    E A 2 Replies Last reply Jan 15, 2021, 12:24 PM Reply Quote 0
    • E
      Ekopalypse @stefan-vienna
      last edited by Jan 15, 2021, 12:24 PM

      @stefan-vienna

      it is expected, open buffer beats saved file.

      S 1 Reply Last reply Jan 15, 2021, 3:12 PM Reply Quote 3
      • A
        Alan Kilborn @stefan-vienna
        last edited by Jan 15, 2021, 12:51 PM

        @stefan-vienna

        I suppose if you really want to search the saved-file and not the open-buffer, and you have no other good way of searching available to you (an independent utility of some sort, say), you could start another instance of N++ and use that to search it.

        For myself I rarely make a lot of changes to a file that I don’t intend to keep. Thus I’m on the “save” key often. Thus for me “saved-file” and “open-buffer” are the same thing, so I don’t run into the situation.

        1 Reply Last reply Reply Quote 3
        • S
          stefan-vienna
          last edited by Jan 15, 2021, 3:09 PM

          I am reading log files which are being constantly written.

          1 Reply Last reply Reply Quote 0
          • S
            stefan-vienna @Ekopalypse
            last edited by Jan 15, 2021, 3:12 PM

            @Ekopalypse aha ok. But this is not intuitive. For the open buffer exists the option “find in open files”

            P 1 Reply Last reply Jan 15, 2021, 4:02 PM Reply Quote 0
            • G
              guy038
              last edited by guy038 Jan 15, 2021, 3:48 PM Jan 15, 2021, 3:44 PM

              Hello, @stefan-vienna, @ekopalypse, @alan-kilborn and All,

              @stefan-vienna :

              • Open a CMD prompt window

              • Type in the command notepad++ -multiInst -nosession and valid

              => A new N++ instance should open with, only, the new 1 tab

              • Open the Find in Files dialog of that new instance

              • Perform your searches

              This time, it will search ONLY  inside true saved files, even if some of these are presently modified by an other N++ instance ;-))

              Best Regards,

              guy038

              1 Reply Last reply Reply Quote 3
              • P
                PeterJones @stefan-vienna
                last edited by PeterJones Jan 15, 2021, 4:02 PM Jan 15, 2021, 4:02 PM

                @stefan-vienna said in Search in files:

                But this is not intuitive

                Oddly, to me, it would be less intuitive for a text editor’s “search” function to search the disk contents instead of what was actively in the editor (and in some cases – like a new file – be completely meaningless).

                1 Reply Last reply Reply Quote 1
                • A
                  Alan Kilborn
                  last edited by Jan 15, 2021, 4:31 PM

                  Searching the disk content of an open file is problematic…because, well, how does N++ do this type of searching?
                  It opens the file into a tab that isn’t shown to the user, for each file searched. Since it can’t easily open two tabs for the same file (hmmm, cloned view does it, though…?), this type of thing isn’t allowed.

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