New module to define webjumps for git repository summaries.
commite781b83791b688b815d1c6c45f471f1bb9f3aa5c
authorDavid Kettler <kettler@internode.on.net>
Wed, 18 Feb 2009 11:55:29 +0000 (18 22:25 +1030)
committerDavid Kettler <kettler@internode.on.net>
Sat, 21 Feb 2009 12:01:19 +0000 (21 22:31 +1030)
tree2d845c8b78ebf8ed252fe40f075fe9421d8e5921
parent9645e930c5feda95fd619373cba1cc631407999e
New module to define webjumps for git repository summaries.

A webjump to access repositories at a gitweb server can be defined
using define_gitweb_summary_webjump.  The alternative url for the
webjump can be a particular repository, the repository list or user
defined.

The default completer for the webjump will complete against the
repositories available at the gitweb server.  To enable this, the user
must specify where to store the OPML data from the server (using
either $opml_file or gitweb_webjumps_opml_directory) and fetch the
data once using gitweb-webjump-get-opml.

Examples:

In your rc have:

  require("gitweb-webjump.js");
  gitweb_webjumps_opml_directory = get_home_directory();
  gitweb_webjumps_opml_directory.appendRelativePath(".conkerorrc/gitweb-webjumps-opml");

  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

If you create the directory ~/.conkerorrc/gitweb-webjumps-opml/ and in
conkeror use M-x gitweb-webjump-get-opml and select gitweb-cz then,
once the download is finished, completions will be available for that
webjump.

With thanks to John Foerch for suggestions.
modules/gitweb-webjump.js [new file with mode: 0644]