Page 1 of 1

Refining regex in viewer search

Posted: 19 Aug 2006, 12:36
by SvA
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.

Re: Refining regex in viewer search

Posted: 19 Aug 2006, 13:55
by AbteriX
SvA 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, ...
It could be i don't understand nothing well this morning, but
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?
so that I have to find the pattern from the history list first.
It's only a one time press on "down arrow" away?!
- F7
- Arrow-down
- Enter

Or did i miss smtg :oops:

Re: Refining regex in viewer search

Posted: 20 Aug 2006, 01:50
by SvA
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.
You are right. However, I hate using the keyboard and the mouse by turns.
AbteriX wrote:- F7
- Arrow-down
- Enter
That helps, thanks! :) I used to use ALT-Arrow-down, which gives a list of history items. Not all that bad, except when the mouse cursor happenes to be where the list pops up, because then the item under the cursor gets highlighted... :x


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