Improvement for Replace dialog

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

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

Log in to reply