Community
    • Login

    Problem with basic search

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 5 Posters 331 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.
    • Keith LengK
      Keith Leng
      last edited by

      I must be doing something wrong, but I’m not sure what. Often, when I search for a term, no results are returned, despite that the term is present in the document. It seems to be something to do with having multiple tabs open. If I search in all opened documents, it will find the term. In the attached screenshot, I am expecting it to search in the currently selected tab, “new 2”, but it doesn’t find the term.

      0461fa48-f89e-4765-b1be-1799b1d07ee7-image.png

      YUNGY Terry RT Alan KilbornA 3 Replies Last reply Reply Quote 0
      • andrecool-68A
        andrecool-68
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • YUNGY
          YUNG @Keith Leng
          last edited by

          @Keith-Leng try check the “Wrap around” checkbox

          1 Reply Last reply Reply Quote 2
          • Terry RT
            Terry R @Keith Leng
            last edited by

            @Keith-Leng said in Problem with basic search:

            but it doesn’t find the term.

            I see the “in selection” button is ticked. Whilst it looks like the text in the background is selected, is it? If wanting to search an entire document untick the “in selection” button, just in case you do have only a portion selected which does NOT contain the term you are looking for.

            Terry

            Keith LengK 1 Reply Last reply Reply Quote 3
            • Alan KilbornA
              Alan Kilborn @Keith Leng
              last edited by

              @Keith-Leng

              So for your case it appears that you are pressing the Find Next button when this search fails? Is that correct?

              If so, you should note that when you have a selection active (like we can see in the righthand part of your screenshot, that a downward search (like you’ve set) will start looking at and beyond the highest position of the selection in the direction of the end of the file. (Interestingly, a backward search – with Backward direction ticked – behaves differently!)

              That’s why you don’t find helping in this example.

              The fact that In selection is ticked has no bearing on this search. If you’ll notice the group box around In selection and Count means that In Selection only applies to Count. So, for Find Next or Find All in Current Document…it is meaningless to have In selection ticked.

              1 Reply Last reply Reply Quote 4
              • Keith LengK
                Keith Leng @Terry R
                last edited by

                @Terry-R said in Problem with basic search:

                I see the “in selection” button is ticked. Whilst it looks like the text in the background is selected, is it? If wanting to search an entire document untick the “in selection” button

                @Alan-Kilborn said in Problem with basic search:

                @Keith-Leng

                So for your case it appears that you are pressing the Find Next button when this search fails? Is that correct?

                If so, you should note that when you have a selection active (like we can see in the righthand part of your screenshot, that a downward search (like you’ve set) will start looking at and beyond the highest position of the selection in the direction of the end of the file. (Interestingly, a backward search – with Backward direction ticked – behaves differently!)

                That’s why you don’t find helping in this example.

                The fact that In selection is ticked has no bearing on this search. If you’ll notice the group box around In selection and Count means that In Selection only applies to Count. So, for Find Next or Find All in Current Document…it is meaningless to have In selection ticked.

                Thanks for the replies. That was the problem. Sorry for my late reply. I didn’t get a notification.

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