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: Multiple directories (%PATH%) in Search Folders list  (Read 7,203 times)

pmoore

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 17
Multiple directories (%PATH%) in Search Folders list
« on: September 01, 2008, 07:56 PM »
What I'd like to be able to do is to specify that the search list includes all of the directories in my %PATH% variable. The reason for this is that I'd like to be able to launch programs on my PATH (which are generally command line utilities) using the Console plugin - so I want an alias that searches PATH (using a keyword to make sure the command line programs aren't included in normal searches). But I'd rather not have to explicitly list the directories in PATH, so that I don't have to update them when I change my PATH.

This could be done by allowing "Directory Path" to contain multiple directories, separated by a user-specified separator (so I'd use %PATH% and ";").

Also nice would be to have a search folder, excluding subdirectories which are on PATH (so that I can put my Utils directory in the search folders, but exclude command line utilities). Again, this could be done by allowing "Exclude subdirectories" to use a separator other than newline (so I could exclude %PATH% with separator ";").

Can any of this be done already, or would it be possible as a new feature?

Paul.

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: Multiple directories (%PATH%) in Search Folders list
« Reply #1 on: September 02, 2008, 02:37 AM »
it can't be done easily but seems like a reasonable idea to me since FARR already will resolve an environment variable pointing to a single path.  in fact i'll bet you're not the only one who would like to have %PATH% searched for files. makes complete sense.

Quote
This could be done by allowing "Directory Path" to contain multiple directories, separated by a user-specified separator (so I'd use %PATH% and ";").

works for me though i'd suggest we use ; always.

i'm putting it on the todo list and hopefully i can get it in the next release.

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: Multiple directories (%PATH%) in Search Folders list
« Reply #2 on: February 24, 2009, 06:29 AM »
implemented in not-yet-released version of farr, will be in next release.

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
Re: Multiple directories (%PATH%) in Search Folders list
« Reply #3 on: February 24, 2009, 08:03 AM »
@mouser

so cool you are working on FARR again  :-*

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