Welcome Guest.   Make a donation to an author on the site October 20, 2014, 07:42:46 PM  *

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.
 
Read the Practical Guide to DonationCoder.com Forum Search Features
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 3 4 5 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Locate32 Plugin for FARR by Okke  (Read 65393 times)
Okke
Supporting Member
**
Posts: 26



View Profile Give some DonationCredits to this forum member
« on: September 23, 2007, 08:19:34 AM »

The first version of the plugin is now released smiley

The plugin will be available through dcupdater soon but for now here is the link for people want to play with it:

http://okke.dcmembers.com...Locate32/FarrLocate32.zip

Let me know if you run into any problems. Since it's the first time I've written a plugin for FARR and the Delphi
framework itself is new as well there could be some small issues. Sofar I haven't had any problems with it myself
but you never know how people are going to use it smiley

I'm looking into how I can add some useful scoring and other more complex stuff. Right now it just lists the results
in the FARR results window. If anyone has an idea on how to best add the scoring......Wink

Good luck!

And Mouser, thanks for the webspace/email! You rock!

Okke

[edited to correct url -- mouser]
« Last Edit: April 08, 2009, 06:30:39 PM by mouser » Logged
nitrix-ud
Charter Member
***
Posts: 482

View Profile Give some DonationCredits to this forum member
« Reply #1 on: September 23, 2007, 09:21:39 AM »

i just had a FARR exception error when specifying the locate.exe folder, after a FARR restart it seems to work very nicely  Thmbsup

i think i will have to get to know locate a bit more now that you've released this plugin

Thanks again  cheesy !
Logged
nitrix-ud
Charter Member
***
Posts: 482

View Profile Give some DonationCredits to this forum member
« Reply #2 on: September 23, 2007, 09:30:30 AM »

@mouser
is there a way to use Okke's plugin to update "my music dosearch alias" :
[copy or print]
Music album search $$1 | dosearch -alias +folder_music +open_winamp +\ $$1

the real issue i guess is the action keyword +open_winamp....

it would be really really powerful to combine this plugins with dosearch commands AND with action keyword, is it possible ?

Cheers, Nitrix
Logged
Darwin
Charter Member
***
Posts: 6,979



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: September 23, 2007, 09:37:17 AM »

Great Okke! Thanks for posting this and welcome to Donationcoder! I'm downloading it now and will give it a spin  Thmbsup
Logged

"Some people have a way with words, other people,... oh... have not way" - Steve Martin
Okke
Supporting Member
**
Posts: 26



View Profile Give some DonationCredits to this forum member
« Reply #4 on: September 23, 2007, 09:39:28 AM »

Thanks for being the first to try it nitrix-ud Wink. You like being on dangerous ground? tongue

The exception is strange though. I quickly tried some different situations but can't reproduce the exception error.

If anyone else has gets the exception error as well let me know. Let me know what windows version,
where locate is located and such. Maybe I'll be able to reproduce it then. Hate exception errors smiley

Let me know if there are any other strange problems.

Lol, just wanted to post the above and you beat me with another reply nitrix smiley

If you can mail me with some ways you use or like to use FARR that would be great! (okke@dcmembers.com).
I'm very new to FARR, the way aliases work and other more complex things like that so any help would be appreciated.
Your suggestion sounds very interesting so I'd love to help out if I can. Good way to learn some more about FARR as well.
If I'm stuck I can always "bother" Mouser, hehe.

Regards,

Okke
Logged
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: September 23, 2007, 11:01:26 AM »

I've just tested this and i have to say: This is amazing!
It works beautifully, and locate is soooo configurable, makes a perfect combination with farr cheesy
The only problem i see is that i use the icon view and thus, can't see the 25 results, only 10, because the +sall action doesn't work.
Other than that... I'm in love!  Kiss

Some credits are definitely heading your way, Okke!!
Logged

mouser
First Author
Administrator
*****
Posts: 33,571



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: September 23, 2007, 11:45:24 AM »

i think +sall isnt working because the plugin uses a regular expression to trigger..
we may be able to configure a separate optional way to trigger the plugin so that +sall can work and farr can do the sorting/scoring of results.
« Last Edit: September 23, 2007, 11:47:44 AM by mouser » Logged
nitrix-ud
Charter Member
***
Posts: 482

View Profile Give some DonationCredits to this forum member
« Reply #7 on: September 23, 2007, 01:23:55 PM »

Mouser, do you think that one day it will be possible to combine this plugin (or others) with (POWERFUL) dosearch commands and action keyword modifiers ?

it would be quite amazing, somehow we would be able to "specify" within an alias if we want to use an INDEX or not ! which is some kind of Graal, isn't it ?

  • find a music album on a network (or not Wink) drive instantly... and enqueue it in your favorite music player
  • search among thousands of files using powerful locate options
  • ...

i SO really hope it will be possible one day !!!

Keep up the good work  Thmbsup

Logged
Darwin
Charter Member
***
Posts: 6,979



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #8 on: September 23, 2007, 01:33:02 PM »

Quote
The only problem i see is that i use the icon view and thus, can't see the 25 results, only 10, because the +sall action doesn't work.

I just went into options - Plugins, Updates, and Fonts, Click to Examine and Configure Plugins, selected Locate32 and then selected Configure Advanced Plugin Options. Once in there it's easy to change the maximum number of files found to 10... Don't know if this addresses your problem or not?
Logged

"Some people have a way with words, other people,... oh... have not way" - Steve Martin
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #9 on: September 23, 2007, 01:35:39 PM »

I just went into options - Plugins, Updates, and Fonts, Click to Examine and Configure Plugins, selected Locate32 and then selected Configure Advanced Plugin Options. Once in there it's easy to change the maximum number of files found to 10... Don't know if this addresses your problem or not?
Well... My problem is that i'd like to see all the 25 results, by typing +sall, or by configuring this plugin to show results in list mode (instead of the 10-icon view i usually use)
Logged

mouser
First Author
Administrator
*****
Posts: 33,571



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #10 on: September 23, 2007, 02:06:19 PM »

its very easy for Okke to let you tell farr to display as many results as locate finds, up to some maximum you configure in the plugin options -- i just need to tell him what command to issue, so this is not going to be a problem -- you wont even have to type +sall, you can just configure it in the plugin options.
Logged
Okke
Supporting Member
**
Posts: 26



View Profile Give some DonationCredits to this forum member
« Reply #11 on: September 23, 2007, 05:19:42 PM »

Hehe, just let me know the option and I'll implement it as soon as I can. Still have a lot to learn
about the options and everything in the plugin api. Might take a while but I'll get there Wink
Probably going to need a lot of help from Mouser and other pluginmakers though hehe.
Logged
mouser
First Author
Administrator
*****
Posts: 33,571



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #12 on: September 23, 2007, 05:24:46 PM »

please no one tell Okke that he is among the top FARR plugin developers in the world.  undecided
Logged
Okke
Supporting Member
**
Posts: 26



View Profile Give some DonationCredits to this forum member
« Reply #13 on: September 23, 2007, 05:32:43 PM »

ROFL! (I didn't read that Mouser, honestly  cheesy)

Wait till I bombard you with tons of questions about the api and the options!
Logged
Armando
Charter Member
***
Posts: 2,680



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #14 on: September 23, 2007, 05:35:44 PM »

It works perfectly well here (and I've specified 37 results in the farr window -- nice)! Thanks a lot Okke.

This plug in is really adding power to an already very powerful app. Now all I have to do is get out my laziness and learn locate’s syntax! i do use locate a lot when searching my C drive and other folders I haven't set farr to look into.

PS : Assigning locate + parameters to a hotkey (with farr’s hotkey system) is one quick way I'm looking into to find stuff without typing too much…
Logged

"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #15 on: September 23, 2007, 05:43:27 PM »

I have one suggestion for this plugin:
Make it so that when we type "loc /?", it'll show the help entries (currently, it does display them, but in a very bad fashion :S)

This would allow us to not have to memorize locate's syntax Wink
Logged

mouser
First Author
Administrator
*****
Posts: 33,571



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #16 on: September 23, 2007, 05:56:27 PM »

ps. in the long run:

there is no reason i shouldnt be able to eventually hook into locate's databases and use it to ALWAYS do a quick index-enabled search of files in conjunction with and simultaneously as a real disk search.

in other words there is no reason that core farr functionality shouldn't be able to eventually include searching locate databases as part of normal everyday search.
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 #17 on: September 23, 2007, 07:20:45 PM »

this is great! thanks a lot, Okke. this is a major leap for Farr in term of functionality.. smiley

and also to Armando: thanks, that's what i did in the end.. i added another alias with a space after the ^loc so that i can use the keywords independently.. smiley
Logged

nitrix-ud
Charter Member
***
Posts: 482

View Profile Give some DonationCredits to this forum member
« Reply #18 on: September 24, 2007, 02:53:59 AM »

i'm sad, mouser don't read me anymore  huh
Logged
Okke
Supporting Member
**
Posts: 26



View Profile Give some DonationCredits to this forum member
« Reply #19 on: September 24, 2007, 05:06:18 AM »

jgpaiva, that's a great suggestion about the /? option. It does look rather crappy smiley

I already implemented the change and will upload it soon. I have to make it work with dcupdater
as well so I'll do that too.

You'll be able to to type "loc /?" "loc -h" or "loc help" and a new window will popup with the help text (the output
of locate /? isn't neat enough to get decently in the resultswindow).
Logged
justice
Supporting Member
**
Posts: 1,889



Solve issues simply.

View Profile WWW Give some DonationCredits to this forum member
« Reply #20 on: September 24, 2007, 05:50:39 AM »

Wow things have come a long way. Congrats to everyone involved!  Thmbsup
Logged

Okke
Supporting Member
**
Posts: 26



View Profile Give some DonationCredits to this forum member
« Reply #21 on: September 24, 2007, 06:43:44 AM »

The next version will also contain the option of showing all results as was requested!

It will be enabled by default but if you don't like it you can disable it in de advanced configuration.
Logged
Okke
Supporting Member
**
Posts: 26



View Profile Give some DonationCredits to this forum member
« Reply #22 on: September 24, 2007, 06:55:09 AM »

Ok, I found out I can use the richedit mode to show the helptext, so no new window will popup when
using loc /?, loc -h or loc help. It will just show in the resultswindow as normal text smiley
Logged
justice
Supporting Member
**
Posts: 1,889



Solve issues simply.

View Profile WWW Give some DonationCredits to this forum member
« Reply #23 on: September 24, 2007, 07:00:23 AM »

Could you add or verify the option -u or -U to run a database update? I'm not sure if it's working, perhaps you'll want to add something less cryptic to make sure the dbinfo is current.
Logged

Okke
Supporting Member
**
Posts: 26



View Profile Give some DonationCredits to this forum member
« Reply #24 on: September 24, 2007, 07:14:21 AM »

The -u or -U option probably won't work. I'm using locate.exe to return the results and if you use locate /? it doesn't show those options.
It seems only the graphical client has those options.

Maybe I can add another way to update the database. I'll put it on the todo list smiley
Logged
Pages: [1] 2 3 4 5 Next   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.047s | Server load: 0.12 ]