• Login
Community
  • Login

Improvement for Replace dialog

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 2.4k 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.
  • H
    Harry D
    last edited by Jun 28, 2017, 4:16 PM

    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.

    S 1 Reply Last reply Jun 28, 2017, 4:37 PM Reply Quote -1
    • S
      Scott Sumner @Harry D
      last edited by Jun 28, 2017, 4:37 PM

      @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
      • A
        AZJIO AZJIO
        last edited by Jun 28, 2017, 10:04 PM

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

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