• Login
Community
  • Login

"In selection" checkbox for replacing in selected lines

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 313 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.
  • D
    datatraveller1
    last edited by Dec 4, 2022, 9:50 AM

    If more than one line is selected and I call Replace (Ctrl+H), it would be convenient if “In selection” was checked automatically.

    I think it can be assumed that after selecting more than one line, the replacement should happen only in this selection.

    These are my experiences. Does someone agree?

    A 1 Reply Last reply Dec 4, 2022, 12:35 PM Reply Quote 0
    • A
      Alan Kilborn @datatraveller1
      last edited by Alan Kilborn Dec 4, 2022, 12:40 PM Dec 4, 2022, 12:35 PM

      @datatraveller1

      Sometimes users want multi-line data to be auto-copied into the Find what box when Replace (Ctrl+h) is invoked. In fact, this is the easiest way to get a mult-line search string into the box.

      So… I don’t think the presence of more than one line is necessarily a great predictor that someone wants to search only “in selection”.

      How the software currently works is that if more than 1024 characters are selected when a “find” function is invoked, the In selection checkbox will be automatically checked. (User-manual REFERENCE to this behavior.)

      But… it does seem a bit inconsistent and “at odds” that when enough text is selected to cause In selection to be auto-checked, that the selected data is also copied into the Find what box.

      A 1 Reply Last reply Dec 4, 2022, 9:18 PM Reply Quote 3
      • A
        Alan Kilborn @Alan Kilborn
        last edited by Dec 4, 2022, 9:18 PM

        @Alan-Kilborn said in “In selection” checkbox for replacing in selected lines:

        But… it does seem a bit inconsistent and “at odds” that when enough text is selected to cause In selection to be auto-checked, that the selected data is also copied into the Find what box.

        I created an official ISSUE for this oddness.

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