ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

v1.07.02 beta - with regular expression commands

<< < (6/8) > >>

nontroppo:
I maintain the Opera Wiki, where we have several hundred search plugins. As it was trivial to add, you can now spit out FARR format search strings from most of our plugins:

http://nontroppo.org/wiki/SearchPlugins?farr=1 (note the ?farr=1 enables the FARR link). Click on the "FARR" links after each plugin to see text to copy.

At the moment you are limited to SE7 (Opera native are the majority anyway) and not SRC (Mozilla) plugins, and you cannot for obvious reasons use POST type plugins. Just copy and paste the text into your FARR alias list.

BTW - this gives me an idea. Why not make a custom MIME type that calls up FARR with the URL chunk which then adds it to an alias list. This will allow click-and-run search plugins to be set up easily via the web (like we have for Opera). I'd be happy to host a custom FARR search plugin database; most of the code, and the search plugins are already there...

mouser:
that is just too cool!!

ok i will look into making the custom mime thing as well as import+export functionality.

the import+export, as well as the mime thing, could benefit from letting each item be able to specify its group heading.

for example before i posted this group:
GROUPNAME: dictionary
REGEX: define (.*)
RESULTS:
Meriam Webster - $$1 |http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=$$1
Dictionary dot com - $$1 | http://dictionary.reference.com/search?q=$$1
Thesaurus dot com - $$1 | http://thesaurus.reference.com/search?q=$$1
Reference dot com - $$1 | http://www.reference.com/search?q=$$1
OED - $$1 | http://www.askoxford.com/results/?view=dict&freesearch=$$1&branch=13842570&textsearchtype=exact
Dict dot org - $$1 | http://www.dict.org/bin/Dict?Form=Dict2&Database=*&Query=$$1
American Heritage - $$1 | http://www.bartleby.com/cgi-bin/texis/webinator/ahdsearch?search_type=enty&query=$$1&db=ahd&Submit=Search
--- End quote ---

so maybe we need like a single line self contained thing:
dictionary | define (.*) | Meriam Webster - $$1 |http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=$$1

then when importing F&R will automatically know what groups to place each alias result into.

-

if its desired, i can add support for POST type url submissions.

mouser:
nontroppo i'd love to make a categorized collection of these opera wiki plugins and provide them with F&R, with full credit to the wiki of course.

nontroppo:
I'd be happy to give you the SQL dump, you'd need to parse it all though (you can then even parse the mozilla plugin format, I've just been lazy!). Saying that though, although I'm quite busy, maybe I can generate a "live" dump into whatever format FARR will end up importing. It would be easier as I know the SQL data structure and have code already there, I just need to loop through each value. I won't do that until we have a defined format for import / export.

How could you support POST - it seems impossible to do it in a browser neutral way...

The only problem with group definition within the plugin will be if users name their groups differently (due to i18n or whatever), you'd end up with lots of redundancy and fragmentation. Why not just bring up a group list when importing and let the user click. The only problem is the $$1 syntax - as I do I need it to be $$2 - maybe another setting in the import. Also, currently it seems unlikely you can set up group-item drag-n-drop or something to overcome it (need to rethink UI)...

mouser:
what i would do with the POST is have a small f&r helper util submit the post date and just sent the resulting reply to be rendered in the browser of choice.  not too hard to do.

as for canonical F&R format, yeah i just realized that my proposed format is not good since | characters can be used in regular expressions, so some other kind of multicharacter separator would be needed.  maybe xml would be best.

as for different group names, well my thinking was that most of the time youll just want to be importing these links, and so all you really care about is that when you download a set of 40, they are pregrouped into 5 groups or so, which will be created on the fly, rather than have to manually sort each one.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version