Re: extensions one-off activation - attach_window / detach_window the way to go?



BCC'ing deskbar-applet-list.

OK, my little Epiphany extension is done - basically it's keywords for
smart bookmarks.  It's like the hard-coded regex's at Vaclav
Smilauer's http://beta.arcig.cz/~eudoxos/ephy/ , and it's also like
the suggested patch at
http://bugzilla.gnome.org/show_bug.cgi?id=118618 (Bookmark nick
names), also without any Alt-I-for-IMDB magic, but:

(1) it's Python (100 lines) instead of C (500 lines), and

(2) it uses the existing shortcuts that the GNOME Deskbar has - in
Deskbar (with Ephy as the preferred browser), you can set it up so
that "wp foo" takes you straight to
http://en.wikipedia.org/wiki/Special:Search?search=%foo  This
extension just makes Epiphany's location bar consistent with the
Deskbar.

(3) it doesn't use the (IMHO) clumsy/buggy bookmark syntax
"%{kw:gg}http://www.google.com/search?q=%s"; but instead uses Deskbar's
existing list of shortcuts in
~/.gnome2/deskbar-applet/search-bookmarks-shortcuts.txt

Download it from
http://www.gnome.org/~nigeltao/epiphany_extensions/bookmark-shortcuts/

I tried to fold in Deskbar's GUI for modifying these shortcuts
(calling import deskbar;
deskbar.BrowserMatch.on_customize_search_shortcuts(...)), but as a
first cut, the UI didn't ever quite feel right...


What you're doing seems like a reasonable workaround. Also, in the long
run it might be a good idea for Epiphany to search for and execute
initialize() and finalize() methods on extensions: could you please file
a bug for that?

Bug filed: http://bugzilla.gnome.org/show_bug.cgi?id=362850
((Py)Extensions should have initialize() and finalize() methods).



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]