Community
    • Login

    "In selection" checkbox for replacing in selected lines

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 594 Views 1 Watching
    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.
    • datatraveller1D Offline
      datatraveller1
      last edited by

      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?

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @datatraveller1
        last edited by Alan Kilborn

        @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.

        Alan KilbornA 1 Reply Last reply Reply Quote 3
        • Alan KilbornA Offline
          Alan Kilborn @Alan Kilborn
          last edited by

          @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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors