DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: custom alias to search specific folder AND its subfolder files?  (Read 5,916 times)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
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,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: custom alias to search specific folder AND its subfolder files?
« Reply #1 on: April 08, 2008, 04:28 PM »
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,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: custom alias to search specific folder AND its subfolder files?
« Reply #2 on: April 09, 2008, 08:12 PM »
Excellent! Thanks.  :Thmbsup:

Original address: https://www.donationcoder.com/forum/index.php?topic=12996.0