'Replace All, In Sel text only' with multiple selections
-
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?
-
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 -
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
-
-
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.