Community
    • Login

    Improvement for Replace dialog

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 3 Posters 2.7k Views 2 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.
    • Harry DH Offline
      Harry D
      last edited by

      Ctrl-H brings up the Replace dialog. In it there is a checkbox “In selection”. You need to check/uncheck this box according to your wishes.

      I think it could be improved if the initial value would be “set” when a selection larger than 0 exists in the document, and “unset” otherwise.

      Currently, I select a bunch of lines, type Ctrl-H, and I STILL have to check the “in selection” box.

      Changing that would make the Replace process smoother, I believe.

      Scott SumnerS 1 Reply Last reply Reply Quote -1
      • Scott SumnerS Offline
        Scott Sumner @Harry D
        last edited by

        @Harry-D

        I understand what you mean, but I think a non-zero length selection is used by the logic that inserts selected text in the Find-what box.

        As an example, if you have the following text (note the spaces between each letter/token):

        a b c d e f a b c d e f a b c d e f
        

        And you want to replace a b c with A B C, you might highlight (select) in your editor tab the first a b c occurrence, then invoke the Replace dialog (with Ctrl+h). At this point Notepad++ puts a b c in the Find-what box. If it also ticked the “In Selection” box, that would probably be deemed wrong behavior. Of course a(space)b(space)c is a pretty simple example, and could easily be typed, but if it were more complicated…

        Po-tay-to, Po-tah-to, :-D

        1 Reply Last reply Reply Quote 1
        • AZJIO AZJIOA Offline
          AZJIO AZJIO
          last edited by

          Make it a button
          https://sourceforge.net/p/notepad-plus/discussion/331753/thread/f274b5c3/?limit=25

          1 Reply Last reply Reply Quote 0

          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