• Login
Community
  • Login

Bug in the find and replace in the selection

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 591 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.
  • P
    pascal scalpa
    last edited by Aug 29, 2020, 2:23 PM

    Hello all!
    Did you noticed this bug in notepad 7.8.7?
    If you try to find and replace a word in a selection of few lines, the selection is “deselected” and notepad is trying to find the word somewhere else…

    A 1 Reply Last reply Aug 29, 2020, 2:43 PM Reply Quote 0
    • R
      rinku singh
      last edited by Aug 29, 2020, 2:28 PM

      yes you can try NppToolBucket plugin for multi line find and replace

      A 1 Reply Last reply Aug 29, 2020, 2:44 PM Reply Quote 0
      • A
        Alan Kilborn @pascal scalpa
        last edited by Alan Kilborn Aug 29, 2020, 2:45 PM Aug 29, 2020, 2:43 PM

        @pascal-scalpa said in Bug in the find and replace in the selection:

        If you try to find and replace a word in a selection of few lines, the selection is “deselected” and …

        It isn’t a bug.

        When you are using the “interactive” search (Find Next button) or search+replace (Replace button) features of Notepad++, it automatically selects text after your action to show you where your next match is (thus “deselecting” a selection you had).

        So…you can’t expect a selection you’ve made to remain active while you are doing this type of search/replace.

        If you are interested in finding or replacing only in a selection you’ve made, your options are to tick the In selection checkbox after you’ve made your selection, and then pressing either of these buttons:

        • Replace All (on the Replace tab)
        • Find All in Current Document (on the Find tab)
        P 1 Reply Last reply Aug 29, 2020, 3:54 PM Reply Quote 1
        • A
          Alan Kilborn @rinku singh
          last edited by Aug 29, 2020, 2:44 PM

          @rinku-singh said in Bug in the find and replace in the selection:

          yes you can try NppToolBucket plugin for multi line find and replace

          For any future readers of this thread, @rinku-singh 's answer has absolutely nothing to do with what @pascal-scalpa wrote about.

          1 Reply Last reply Reply Quote 0
          • P
            pascal scalpa @Alan Kilborn
            last edited by Aug 29, 2020, 3:54 PM

            @Alan-Kilborn
            Thanks for reply.
            I do it the way you said.
            I know well this functionnality i used it often before.
            The bug is always here !

            A 1 Reply Last reply Aug 29, 2020, 4:12 PM Reply Quote 0
            • A
              Alan Kilborn @pascal scalpa
              last edited by Aug 29, 2020, 4:12 PM

              @pascal-scalpa

              The bug is always here !

              There is no bug.

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