Community
    • Login

    Replace "In selection" behaviour

    Scheduled Pinned Locked Moved General Discussion
    1 Posts 1 Posters 2.3k 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.
    • Jesús PeraitaJ
      Jesús Peraita
      last edited by

      Hi all,

      I use a lot the “In selection” check box when replacing.

      However, I can´t understand the rationale behind its behaviour:

      • If no text is selected, the check box unmarks itself, greys out and the replace is done on the whole document.

      I am working with dozens of docs, marking blocks of text and acting on them. However, if for whatever reason, I forget to mark a block in one of the files, the “Replace” will act on the whole document without any warning.

      I guess that it would make more sense to make the “In selection” check box always active and issue a warning if a replacement is attempted with the “In selection” checked and no selected text.
      Maybe something like: “Attempt to replace ‘In selection’ with no selected text. Do you want to replace on whole document?”

      Or maybe there’s some kind of “hidden advantage” to the current behaviour that I’m not understanding?

      JP

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