Navigation

    Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    3
    5
    1824
    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.
    • Alan Kilborn
      Alan Kilborn last edited by

      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?

      Claudia Frank Scott Sumner 2 Replies Last reply Reply Quote 0
      • Claudia Frank
        Claudia Frank @Alan Kilborn last edited by

        @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
        • Scott Sumner
          Scott Sumner @Alan Kilborn last edited by

          @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

          Claudia Frank 1 Reply Last reply Reply Quote 0
          • Claudia Frank
            Claudia Frank @Scott Sumner last edited by

            @Scott-Sumner

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

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • Scott Sumner
              Scott Sumner last edited by

              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
              • First post
                Last post
              Copyright © 2014 NodeBB Forums | Contributors