Welcome Guest.   Make a donation to an author on the site October 21, 2014, 07:02:27 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2010! Download 24 custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Alias/command to search a set path  (Read 2398 times)
pmoore
Supporting Member
**
Posts: 17


View Profile Give some DonationCredits to this forum member
« on: August 08, 2008, 05:07:46 AM »

This may be possible, but I haven't been able to find the way to do it. I'm new to tailoring FARR's behaviour, so I could easily have missed something. If it's not, could it be treated as a feature request?

I'd like to be able to set up an alias to search a specific set of directories (something like the standard search folders, but for this alias only and probably only one or two folders) and return the executables which match the alias argument. (Ideally, I'd like to be able to filter the list further to exclude console executables - which I can detect using an external program or script - but that may be a bit too complex/slow).

Essentially, I have a directory full of "portable" applications (which don't install shortcuts in the start menu) and I'd like to be able to launch them just by typing in the executable name.

Paul.
Logged
lanux128
Global Moderator
*****
Posts: 6,108



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: August 08, 2008, 05:54:58 AM »

hi there pmoore,

i can show you how i restrict searches to a certain folders and certain extensions, maybe this will give you an idea of Farr's capabilities.

from the 'Options', go to 'List' > 'Search folders', on the right-side pane, create a new entry by right-clicking & choose 'Add new entry'. in the ensuing dialog, enter the search path, extensions to be filtered and a modifier keyword. (see Fig.1). here i use the "My Documents" folder as an example. then from the main window, prefix the modifier keyword with a '+' and type your own query and the results would something from the Fig.2.

Fig.1: enter necessary info


Fig.2: filtered results from selected folders


P.S. you can assign the same 'modifier keyword' to other folders and they will come under the same purview. hth.
Logged

pmoore
Supporting Member
**
Posts: 17


View Profile Give some DonationCredits to this forum member
« Reply #2 on: August 08, 2008, 06:42:13 AM »

That's brilliant. Thanks for the explanation - it does indeed do pretty much exactly what I want.

One further question, if I may. Is there a way of further restricting the list by running a specific check on each file found? I appreciate that this may need a plugin or alias to achieve. The reason I ask is that my "Utils" directory contains a lot of programs, some of which are console utilities, not suitable for running from a GUI tool like FARR. So I'd like to exclude them. I can get most of what I want by simply excluding the relevant directories, but being able to run a check for GUI-mode programs would work regardless of directory structure.

In practice, it may not be important, as FARR's approach of boosting the priority of programs I've used before is likely to be at least as effective. But I'm curious to know if it's possible.

Thanks,
Paul
Logged
lanux128
Global Moderator
*****
Posts: 6,108



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: August 08, 2008, 08:07:37 AM »

actually, i have a similar structure like yours where i keep all my portable EXEs in a single folder and reference it to Farr's search folder. however i'm not sure if it's possible to identify a GUI tool from a CLI one unless there is a specific criteria to differentiate the two.  smiley
Logged

herojoker
Participant
*
Posts: 124


View Profile Give some DonationCredits to this forum member
« Reply #4 on: August 09, 2008, 04:04:43 PM »

If you don't want to enter the modifier each time, you can create a new alias which uses dosearch or restartsearch (see help file for more information).
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.027s | Server load: 0.18 ]