• Login
Community
  • Login

Problem with basic search

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 5 Posters 341 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.
  • K
    Keith Leng
    last edited by Oct 6, 2020, 5:55 AM

    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

    Y T A 3 Replies Last reply Oct 6, 2020, 6:12 AM Reply Quote 0
    • A
      andrecool-68
      last edited by Oct 6, 2020, 5:58 AM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • Y
        YUNG @Keith Leng
        last edited by Oct 6, 2020, 6:12 AM

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

        1 Reply Last reply Reply Quote 2
        • T
          Terry R @Keith Leng
          last edited by Oct 6, 2020, 6:32 AM

          @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

          K 1 Reply Last reply Jan 2, 2021, 4:35 AM Reply Quote 3
          • A
            Alan Kilborn @Keith Leng
            last edited by Oct 6, 2020, 12:00 PM

            @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
            • K
              Keith Leng @Terry R
              last edited by Jan 2, 2021, 4:35 AM

              @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