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.
Refining regex in viewer search
Re: Refining regex in viewer search
It could be i don't understand nothing well this morning, butSvA wrote:...
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, ...
if you click one time into the viewer bevor you press F7 again...
... you have no selected string anymore..
...and in the find dialog is then still your older search pattern.
HTH?
It's only a one time press on "down arrow" away?!so that I have to find the pattern from the history list first.
- F7
- Arrow-down
- Enter
Or did i miss smtg

AbteriX
Re: Refining regex in viewer search
You are right. However, I hate using the keyboard and the mouse by turns.AbteriX wrote:if you click one time into the viewer bevor you press F7 again...
... you have no selected string anymore..
...and in the find dialog is then still your older search pattern.
That helps, thanks!AbteriX wrote:- F7
- Arrow-down
- Enter


Nevertheless, I'd consider my initial suggestion an impovement.