2 * (C) Copyright 2008 David Kettler
3 * (C) Copyright 2009-2010 John J. Foerch
5 * Use, modification, and distribution are subject to the terms specified in the
9 require("content-buffer.js");
11 define_keymap("gmane_keymap", $display_name = "gmane");
14 Loom keystrokes. http://gmane.org/loom-help.php
16 SPC Page down, then next article
17 DEL Page up the current article
18 n Select the next unread article
19 p Select the previous unread article
20 N Select the next article
21 P Select the previous article
23 - Go to the previous page
24 f Go to the first page
26 c Catch up -- mark all articles as read
27 C Clear -- mark all articles as unread
29 < Go to the first article on the page
30 > Go to the last article on the page
31 . Go to the first article currently displayed in the frame
32 down Move focus to the next subject
33 up Move focus to the previous subject
34 * q Quit and go to the list of groups
35 S Report the current article as spam
36 * D Disable all Loom keystrokes
38 Keystrokes marked with * are not passed through in this mode.
40 There's a disable, but no enable. Maybe should provide a way to
41 switch the keymap in and out.
44 define_key(gmane_keymap, "space", null, $fallthrough);
45 define_key(gmane_keymap, "back_space", null, $fallthrough);
46 define_key(gmane_keymap, "n", null, $fallthrough);
47 define_key(gmane_keymap, "p", null, $fallthrough);
48 define_key(gmane_keymap, "N", null, $fallthrough);
49 define_key(gmane_keymap, "P", null, $fallthrough);
50 define_key(gmane_keymap, "+", null, $fallthrough);
51 define_key(gmane_keymap, "-", null, $fallthrough);
52 define_key(gmane_keymap, "f", null, $fallthrough);
53 define_key(gmane_keymap, "l", null, $fallthrough);
54 define_key(gmane_keymap, "c", null, $fallthrough);
55 define_key(gmane_keymap, "C", null, $fallthrough);
56 define_key(gmane_keymap, "R", null, $fallthrough);
57 define_key(gmane_keymap, "<", null, $fallthrough);
58 define_key(gmane_keymap, ">", null, $fallthrough);
59 define_key(gmane_keymap, ".", null, $fallthrough);
60 define_key(gmane_keymap, "down", null, $fallthrough);
61 define_key(gmane_keymap, "up", null, $fallthrough);
62 define_key(gmane_keymap, "S", null, $fallthrough);
64 define_keymaps_page_mode("gmane-mode",
65 build_url_regexp($domain = /(news|thread)\.gmane/, $tlds = ["org"]),
66 { normal: gmane_keymap },
67 $display_name = "Gmane");
69 page_mode_activate(gmane_mode);