topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday December 2, 2024, 5:31 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: alias request: exit alias when result filter for regex matches no result line  (Read 3951 times)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,169
    • View Profile
    • Donate to Member
Let us say we have an alias with regex pattern
^x (|.+)$
and result filter for regex
$$1
and three alias results
golf|C:\folder\program.exe
swimming|C:\this\file.html
soccer|C:\somewhere\image.png

Type "x " and the three alias results are shown.
Type "x m" and only the swimming result is shown
Type "x ma" and nothing is shown, since no result name (the part before | ) contains "ma".

Mouser how about an option to when a result filter matches nothing revert to a regular FARR search? With that FARR would in my example above revert to a search for "x ma" everywhere and match e.g. C:\another folder\mad max.url

skajfes

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 267
    • View Profile
    • Donate to Member
I have not tested it, but I think this options should get you really close to what you want.
From my understanding, you will get the alias mathces and the results of any other searches in the same list.

FARR options.pngalias request: exit alias when result filter for regex matches no result line


[Edit: added image as attachment, rather than link]
It is impossible to make anything foolproof because fools are so ingenious.

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,169
    • View Profile
    • Donate to Member
If I uncheck "stop search on regex alias match" FARR shows both the regex matches and anything else matching the pattern. So in my example above if I uncheck that option and type "x " I see the three alias results (golf, swimming, soccer) but also a lot of other things. The problem here is that with a conveniently short first group alias "starter string" ("x " in my example) a lot of other filenames will match (have an x and a space) and clutter the list.

The option I want is "stop search if (regex alias match and (results filter not enabled or results filter match) )". Though when I spell it out it that way it sounds like a pretty niche option I must say.  ;D