[Conkeror] [PATCH] New module to define webjumps for git repository summaries.

John J Foerch jjfoerch at earthlink.net
Sat Feb 7 12:43:29 PST 2009


David Kettler <kettler at internode.on.net> writes:
> There's a convenient way to choose an alternative url as either a
> particular repository or as the repository list.
>
> A completer is available which fetches the list of repositories from
> gitweb.  This should only be used on local sites; it's slow and not
> nice to the server to use on a large external site.
>
> Acknowledgement: The completer is glommed together from
> all_word_completer and the search_engine completer.
>
> Examples:
>
> require("gitweb-webjump.js");
> define_gitweb_summary_webjump("gitweb-ko", "http://git.kernel.org");
> define_gitweb_summary_webjump("gitweb-cz", "http://repo.or.cz/w");
>
> You can now use the following webjumps:
>   gitweb-cz conkeror
>   gitweb-ko git/git
> ---
>
> The intention with the completer is that it gets the list from the
> server once only.  However currently, if you press more keys before it
> has the list, it will redo the request.  That's slower and is
> unfriendly to the server.  It's okay for a fast, local server.
>
> Here's a patch that forces the get to happen only once.  However in
> this case when more keys are pressed the get is never completed, so
> completions aren't available.  I don't know how to fix this.


Can this go on the Webjumps page of our wiki, perhaps on its own page,
since it is long?  Because of the problems you cite and it being "not
nice to external servers" I hesitate to add it.

-- 
John Foerch



More information about the Conkeror mailing list