List Info

Thread: keywords




keywords
country flaguser name
Germany
2007-04-15 14:42:15
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-listgnome.org
http://mail.gnome.org/mailman/listinfo/deskbar-applet-
list

  
Re: keywords
user name
2007-04-16 02:23:16
> 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 behaviour *is* in deskbar: (right click) >
Preferences > select
"Web Searches" > More... and then simply click
in the shortcut field
next to the search engine to set a shortcut.

What's more, Epiphany comes with an extension to use these
shortcuts too.

> But now, when i'm thinking about it, i'm reinventig the
wheel.

...and much more than you thought.

Hope that helps,
Drew.
_______________________________________________
deskbar-applet-list mailing list
deskbar-applet-listgnome.org
http://mail.gnome.org/mailman/listinfo/deskbar-applet-
list

Re: keywords
country flaguser name
Germany
2007-04-16 02:41:48
Am Montag, den 16.04.2007, 17:23 +1000 schrieb Andrew Kerr:
> > 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 behaviour *is* in deskbar: (right click) >
Preferences > select
> "Web Searches" > More... and then simply
click in the shortcut field
> next to the search engine to set a shortcut.
> 

Ooops 

havent noticed that. Im using 2.18.1 under Ubuntu 7.04 and
can only
choose between "primary" and "all"
search-engines under preferences
here...


> > But now, when i'm thinking about it, i'm
reinventig the wheel.
> 
> ...and much more than you thought.

But does it allow to use keywords for the other backends
too: 
beagle, evo and the like?

When im working quickly, I like to omit the mouse/arrow keys
where ever
I can. (passionated vim-user  )

So "Alt-F3 -> b sth" would be a good
replacement for my gesture+browser
searchengine.

I see now that it is more than writing a simple handler (and
thus
exceeds my skills). Take it as a serious feature request.

Sebastian.

_______________________________________________
deskbar-applet-list mailing list
deskbar-applet-listgnome.org
http://mail.gnome.org/mailman/listinfo/deskbar-applet-
list

Re: keywords
country flaguser name
Belgium
2007-04-16 06:49:16
Hi Sebastian !

> I see now that it is more than writing a simple handler
(and thus
> exceeds my skills). Take it as a serious feature
request.

This feature is certainly something we want to be able to do
easily on
the next release, if the refactoring for Google SoC is a
success.

Raf

_______________________________________________
deskbar-applet-list mailing list
deskbar-applet-listgnome.org
http://mail.gnome.org/mailman/listinfo/deskbar-applet-
list

Re: keywords
user name
2007-04-16 19:36:30
> > havent noticed that. Im using 2.18.1 under Ubuntu
7.04 and can only
> > choose between "primary" and
"all" search-engines under preferences
> > here...
> >
> I have the same version and can't find that feature,
either.

I think that, currently, this feature is only available if
your
(GNOME) preferred browser is Epiphany rather than Firefox. 
There's no
reason why it shouldn't also be available for Firefox,
except possibly
that Firefox would already have its own keywords somewhere,
and the
Right Thing To Do would be to just pick up those out of
~/.mozilla/firefox/whatever rather than have a separate UI
and storage
to maintain the mapping from keyword to search engine.

The relevant code in deskbar/handlers/epiphany.py is all the
stuff
that touches the shortcuts_to_smart_bookmarks_map variable.
_______________________________________________
deskbar-applet-list mailing list
deskbar-applet-listgnome.org
http://mail.gnome.org/mailman/listinfo/deskbar-applet-
list

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )