topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Tuesday March 19, 2024, 5:22 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: custom alias to search specific folder AND its subfolder files?  (Read 4318 times)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,169
    • View Profile
    • Donate to Member
I created this custom alias:
1000>>>photo>->photo $$1 | dosearch C:\-- photo\$$1>+>^photo (.*)

When typing "photo test" in FARR the only results I get are subfolders in C:\-- photo\ with "test" in the name, no file file matches. When I type "photo test jpg" do I get matching images from subfolders.

If I change the alias to
1000>>>photo>->photo $$1 | dosearch C:\-- photo\$$1 -\>+>^photo (.*)
then "photo test" gives only file matches, no folder matches.

But can I change the alias so that "photo test" returns BOTH matching images and matching folders?


(A related idea (I think this has been mentioned before but here goes anyway): it would be great if Pattern Scoring could be used to not only increase/decrease the score but also momentarily prioritize searching some specified folder in a way that overrides the Search Folders list. So for example, if a search pattern includes "photo" a custom pattern scoring entry could instruct FARR to then first search a specific folder, and only after that follow the regular Search Folders list.)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: custom alias to search specific folder AND its subfolder files?
« Reply #1 on: April 08, 2008, 11:28 AM »
you can do this.

go into your search directories list, add your custom directory (C:\-- photo), and specify a special modifier like: photodir

now in your dosearch (or regular search), dont specify "C:\-- photo" but instead specify: +photodir
that tells farr to search the entire c:\-- photo tree for matching files

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,169
    • View Profile
    • Donate to Member
Re: custom alias to search specific folder AND its subfolder files?
« Reply #2 on: April 09, 2008, 03:12 PM »
Excellent! Thanks.  :Thmbsup: