Community
Participate
Working Groups
Build id: I20051018-0932. The scenario that I would like to see supported in find replace on selected lines would be the following: - select a few lines of code; - bring up the Find/Replace dialog; (note: 'Selected Lines' is checked); - type in a find query; - type in a replace with text; - hit Replace All; (occurrences of the Find string get changed, as expected); - make a new selection without closing the Find/Replace box; - hit Replace All again, and get the same change happen upon the new selection. What happens else in the last step is that all occurrences of the find text get changed into the whole file. This is because 'Selected Lines' gets unselected when I change the selection. The workaround is quite simple: once I have changed my selection, I should check 'Selected Lines' again. The only problem I have with this is that I get caught up to three times a day ;-) I understand that Ctrl-Zing immediately saves the situation. Yet, I believe it would be slightly better to stick to the safest change here, limited to the selected area as long as the 'Selected Lines' got checked and a valid selection is available, or at least as long as only transient states separate times at which a valid selection is available.
The issue you bring up is mentioned in bug 48463 comment 0: <quote> if you use the editor window to drag a new selection the dialog switches itself back to scope 'all' and mangles your entire file. </quote> *** This bug has been marked as a duplicate of 48463 ***
I have split bug 48463 into four more specific bugs. This bug is actually a duplicate of bug 285822 "Find scope does not stay on "Selected lines" while selecting".
*** This bug has been marked as a duplicate of bug 285822 ***