Page 1 of 1
Match At Beginning for LFB and Visual Filters
Posted: 16 Dec 2021 10:58
by Evolve
We have this beautiful option
Code: Select all
Configuration | Filters & Type Ahead Find | Type Ahead Find | Match at beginning
Unfortunately, it only works for
Type Ahead Find and not even always here, because if I tick
Redirect typing to LFB, this option is ignored.
How about moving it on top and applying for all types of filters?
suggestion.png
PS. Or could you please at least make
LFB respect this option when the request is redirected from
Type Ahead Find
PPS. After moving the option on top you can still make it work only for some filters.
suggestion2.png
Re: Match At Beginning for LFB and Visual Filters
Posted: 16 Dec 2021 13:06
by admin
For now I will add a tweak (applies to LFB and Visual Filters):
Re: Match At Beginning for LFB and Visual Filters
Posted: 29 Dec 2021 18:52
by Evolve
I've lost my confidence in this approach. Sometimes I do need to search in the middle of the string and in those cases I have to put * not only at the beginning, but at the end as well and until I do so I don't see the results, so I have to press two stars **, then "left" and then start typing in between which is actually impossible with redirection so I have to go to LFB manually and do all that stuff there.
I think a better way than that flag would be to add a special symbol to indicate the beginning/end of the string, like ^ $ in regex except I think one symbol would be enough.
^word - word at the beginning
word^ - word at the end
word - word anywhere
PS.Maybe not ^ but one of those ones that can't be in a file name, except * obviously.
How about making one of those \/:?"<>| an "anti-star"?
|beginning
end|
PPS. Actually no, it wouldn't work for exact same reason, I can't move the cursor in "Type Ahead Find".
So there should be 2 distinct symbols for beginning and end.
|beginning
:end
Or maybe just stick with well-known regex ^ $ by putting them into LFB setting "Enable extended pattern matching" and escape if need be.
Re: Match At Beginning for LFB and Visual Filters
Posted: 30 Dec 2021 10:08
by admin
Use the standard setup (VFMatchAtBeginning=0) and add * to the end of your pattern to make it match at beginning.
Re: Match At Beginning for LFB and Visual Filters
Posted: 30 Dec 2021 10:39
by Evolve
So, it's already there, Nice! Thanks, I had a feeling that I was missing something.
Re: Match At Beginning for LFB and Visual Filters
Posted: 30 Dec 2021 10:57
by admin
Equally you can make it match at the end like this: *pattern
This applies to all wildcard patterns in XY (unless explicitly stated otherwise in the settings): The automatic internal asterisks at both ends are only added if the pattern itself does not have any wildcards (*?).