Messages - Okke [ switch to compact view ]

Pages: prev1 [2] 3 4 5 6next
6
FARR Plugins and Aliases / Locate32 Plugin for FARR by Okke
« on: September 26, 2007, 09:27 AM »
Aahh, rjbull, thanks for noticing that. That would explain it. I'm using 3.0.7.7010 myself so I never had
that problem. Hopefully upgrading to 3.0.7.9220 fixes the problem cettolox had if he was running the bugged version.

7
FARR Plugins and Aliases / Re: FARR v2 PLUGIN CREATOR INFO THREAD
« on: September 26, 2007, 08:48 AM »
I’m still working on the locate32 plugin and nitrix had some great ideas on how to use it.
Now I’m running into some problems.

What I tried to do:

-   used the regex “loc”
-   make an alias that does the following:
dosearch loc –p d:\music –ld $$1 +open_winamp

Why this doesn’t work:

FARR doesn’t seem to recognize the +open_winamp option when a regular expression is used.


What I tried to do next:
-   create an alias for the plugin named “locate”
-   make an alias that does the following:
dosearch locate –p d:\music –ld $$1 +open_winamp


Why this doesn’t work:

When using an alias and using the searchstring_lc_nokeywords parameter the options like “-p” and “-ld” get stripped too. So I can’t use that searchstring. It would also be really hard to distinguish minusoptions (for instance –mp3) that belong to FARR or belong to locate.


What I tried to do next:

Instead of having the locate alias use “-p” for directories and “-ld” for directories only, I filtered out the “+” options in the plugin so I can use the FARR searchfolders like “+folder_music” and options for directories only like “+\”. I open the FindAndRunRobot.ini and read the SearchFolders section to do that (Mouser, is there a way to question SearchFolders from inside the plugin?).

The options get translated back to the regular “-p” and “-ld” options and it loops through the matched directories and adds those files found to the results. Btw, people might say I could just return the results to FARR and let it do all the filtering in case of “+folder_music” but the problem is locate would just return ALL the results at first which is basically your whole harddisk :).

This is working sofar but I’m running into one more problem. When I return the results I tell FARR to add a score to the files (also tried telling FARR to do matching after returning results as well). It does add a score but it totally seems to ignore pattern scoring. If I do “locate +folder_music +mp3 <artistname>” then locate returns the results but the “+mp3” pattern scoring doesn’t add the score to mp3 files. If I do “+folder_music +mp3 <artistname>” it does add the scoring. Does the pattern scoring work with aliases/plugins at all? I would expect FARR to apply the + modifiers to the result. In case of “+folder_music” and “+mp3” I’d expect all the results to match the first modifier and add the score to mp3 files that are found.

I could read the pattern scoring from the ini file as well but I’d rather not if it’s not needed. It would be great if I could just pass the results back and let FARR take care of the rest.

Mouser, do you have any ideas/solutions? Or anybody else ofcourse :)

8
FARR Plugins and Aliases / Locate32 Plugin for FARR by Okke
« on: September 26, 2007, 08:10 AM »
@lanux128:

I'll check if I can find a registry key. That's a very good idea. The less people have to configure, the better :)

@cettolox:

Mmh, it's very strange. If locate.exe by itself (at a commandprompt for instance) doesn't work it looks like a problem
with locate, not with the plugin. The plugin depends on the output of locate.exe. As far as I can tell locate.exe uses
the same databases as the graphical client by default. So you should get output at the commandprompt at least.

Maybe someone else has some tips regarding this?

9
FARR Plugins and Aliases / Locate32 Plugin for FARR by Okke
« on: September 26, 2007, 01:46 AM »
@lanux128:

Thanks for the suggestion. I've been thinking about that myself as well. I'll probably change both location options in the advanced
configuration to 1 and just ask for the directory where locate32 is installed (and set it to the default location by default) instead
of asking for the .exe files.

For now:
If someone hasn't changed the location and tries to type "loc <something>" and the paths aren't correct you'll be notified though
and the advanced configuration dialog comes up immediately. So it shouldn't be confusing for new users in that sense though.

10
FARR Plugins and Aliases / Locate32 Plugin for FARR by Okke
« on: September 25, 2007, 01:43 PM »
Hehe, glad it worked! At least we know now it doesn't work with older versions ;)

Hope you like it. If you have any suggestions, just yell.

Pages: prev1 [2] 3 4 5 6next
Go to full version