• Login
Community
  • Login

'Replace All, In Sel text only' with multiple selections

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 3 Posters 2.2k 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.
  • A
    Alan Kilborn
    last edited by Apr 24, 2017, 12:22 PM

    If I mark 3 selections, left-to-right within all 3:

    • Select with mouse the first selection close to the top of the file
    • Select second selection closer to the end of the file (by holding down control while mouse selecting)
    • Select third selection closer to the end of the file (by holding down control while mouse selecting)

    I can see the text I want to replace existing within all 3 selected regions.

    I invoke the Replace dialog, and tick the “In Sel text only” checkbox. All other checkboxes unticked. Literal search in the downward direction.

    Pressing Replace All button only results in my replace being done in the third selection–shouldn’t it be done in ALL 3 selections?

    What am I not understanding about this feature?

    C S 2 Replies Last reply Apr 24, 2017, 1:54 PM Reply Quote 0
    • C
      Claudia Frank @Alan Kilborn
      last edited by Apr 24, 2017, 1:54 PM

      @Alan-Kilborn

      Hmm, I do have the same understanding,
      unfortunately this function doesn’t work under wine for me at all.
      Under wine, it simply ignores the selection at all. Sorry for not being helpful.

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • S
        Scott Sumner @Alan Kilborn
        last edited by Apr 24, 2017, 5:57 PM

        @Alan-Kilborn

        Code can do it correctly. :-D

        See my posting in this thread: https://notepad-plus-plus.org/community/topic/13701/python-script-to-replace-on-selection

        C 1 Reply Last reply Apr 24, 2017, 6:03 PM Reply Quote 0
        • C
          Claudia Frank @Scott Sumner
          last edited by Apr 24, 2017, 6:03 PM

          @Scott-Sumner

          :-) actually, this is how I do it as well ;-)

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 0
          • S
            Scott Sumner
            last edited by Apr 25, 2017, 7:42 PM

            Earlier I linked to a posting by me in another thread.

            I should have linked to a posting by me in yet another thread: https://notepad-plus-plus.org/community/topic/77/blank-trim-operations-on-a-text-selection-only

            :-D

            I guess the answer to the OP’s question is that this (a selection-based action acting only upon the single, most recently made selection [when there are multiple selections active]) has been known behavior for a long time.

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