Hi
I want to write a handler to simulate the behavior of
firefox feature to
use search-engines via keywords. [1]
e.g. assign the keyword "z" to the
amazon-search-engine and write in the
adress-bar of firefox: "z harry potter" and it
will search amazon.
I want that behavior in deskbar. That means i want to choose
the handler
to use before I enter the word by a (cryptic) prefix.
The reason is: I always know *before* entering the word
what
search-engine i would like to use (translator, wikipedia,
goo/beagle,
evolution contacts) -- deskbar forces me to choose
afterwards.
So my first idea was to write some kind of meta-handler that
strips of
the first letters ("z ") and delegates the query
to a specific handler.
I did some steps in that direction, but im stuck at the
moment because i
dont know how to proceed with the results of the delegated
handler. I
wanted sth like
"result.append(aHandler.query(myquery)". But that
didnt
work, (the Matches seem to be of "NoneType").
But now, when i'm thinking about it, i'm reinventig the
wheel. the trick
would be to recognize the search-engine keywords, and then
let firefox
do the rest. That would mean to modify
"handlers/mozilla.py" (but then,
how to deal with keywords for beagle, evo? )
OK. That was a mixture of feature request, a
half-implemented
MetaHandler, or request for comments and other ideas on this
...
Let me know what you think.
Best regards, Sebastian.
[1] In fact I think Opera had it first. Together with mouse
gestures it
is extremely usable: "Mouse Down, g sth" googles
for sth. extremely
fast
_______________________________________________
deskbar-applet-list mailing list
deskbar-applet-list gnome.org
http://mail.gnome.org/mailman/listinfo/deskbar-applet-
list
|