Refining regex in viewer search
Posted: 19 Aug 2006, 12:36
I often find myself refining a regular expression search pattern after an initial search in the internal viewer, e.g because I find it does find unwanted instances. For this reason I press F7 again to edit the pattern.
Unfortunately, the previous search selected the found string in the viewer and the Find dialog now present me with that found/selected string instead of my original pattern, so that I have to find the pattern from the history list first.
Could behaviour please be changed to only preset the selected string as new search pattern if it has been selected manualy, not if it has been selected by a previous search? Alternatively, as probably an easyer way to implement but leading largely to the same outcome, only replace the previous pattern if it does not match the complete selection, maybe even considering it's environment, which it should not match.
Unfortunately, the previous search selected the found string in the viewer and the Find dialog now present me with that found/selected string instead of my original pattern, so that I have to find the pattern from the history list first.
Could behaviour please be changed to only preset the selected string as new search pattern if it has been selected manualy, not if it has been selected by a previous search? Alternatively, as probably an easyer way to implement but leading largely to the same outcome, only replace the previous pattern if it does not match the complete selection, maybe even considering it's environment, which it should not match.