Refining regex in viewer search

We welcome any suggestions for new features or improvements in Altap Salamander. Please post one suggestion per report.
User avatar
SvA
Posts: 461
Joined: 29 Mar 2006, 02:41
Location: DE

Refining regex in viewer search

Post by SvA » 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.

User avatar
AbteriX
Posts: 94
Joined: 12 Mar 2006, 20:55
Location: Deutschland
Contact:

Re: Refining regex in viewer search

Post by AbteriX » 19 Aug 2006, 13:55

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:
AbteriX

User avatar
SvA
Posts: 461
Joined: 29 Mar 2006, 02:41
Location: DE

Re: Refining regex in viewer search

Post by SvA » 20 Aug 2006, 01:50

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.

Post Reply