Debian package: Switch to a dh style debian/rules
[conkeror.git] / modules / page-modes / newsblur.js
blob173e563b0a684a7d64bdbca77c08e201dc466f80
1 /**
2  * NewsBlur mode (for https://www.newsblur.com RSS news reader)
3  * (C) Copyright 2012 Benjamin Slade
4  *
5  * Use, modification, and distribution are subject to the terms specified in the
6  * COPYING file.
7 **/
9 require("content-buffer.js");
12 define_keymap("newsblur_keymap", $display_name = "newsblur");
13 define_fallthrough(newsblur_keymap, match_any_unmodified_character);
15 // Help
16 define_key(newsblur_keymap, "?", null, $fallthrough); // open help
18 // Navigation
19 define_key(newsblur_keymap, "d", null, $fallthrough); // back to dashboard
20 define_key(newsblur_keymap, "E", null, $fallthrough); // fetch everything (fetch all unread stories)
21 define_key(newsblur_keymap, "g", null, $fallthrough); // find feed by name
22 define_key(newsblur_keymap, "k", null, $fallthrough); // previous story
23 define_key(newsblur_keymap, "j", null, $fallthrough); // next story
24 define_key(newsblur_keymap, "up", null, $fallthrough); // previous story
25 define_key(newsblur_keymap, "down", null, $fallthrough); // next story
26 define_key(newsblur_keymap, "K", null, $fallthrough); // previous site
27 define_key(newsblur_keymap, "J", null, $fallthrough); // next site
28 define_key(newsblur_keymap, "S-up", null, $fallthrough); // previous site
29 define_key(newsblur_keymap, "S-down", null, $fallthrough); // next site
30 define_key(newsblur_keymap, "S-space", null, $fallthrough); // scroll up
31 define_key(newsblur_keymap, "space", null, $fallthrough); // scroll down
32 define_key(newsblur_keymap, "p", null, $fallthrough); // previous unread story
33 define_key(newsblur_keymap, "n", null, $fallthrough); // next unread story
34 define_key(newsblur_keymap, "m", null, $fallthrough); // find oldest unread story
35 define_key(newsblur_keymap, "left", null, $fallthrough); // switch views (original|feed|story)
36 define_key(newsblur_keymap, "right", null, $fallthrough); // switch views (original|feed|story)
39 // Acting
40 define_key(newsblur_keymap, "u", null, $fallthrough); // toggle unread/read on current story
41 define_key(newsblur_keymap, "s", null, $fallthrough); // toggle save/unsave story
42 define_key(newsblur_keymap, "o", null, $fallthrough); // open story in new window
43 define_key(newsblur_keymap, "A", null, $fallthrough); // mark all stories as read
44 define_key(newsblur_keymap, "S", null, $fallthrough); // share story
45 define_key(newsblur_keymap, "C-return", null, $fallthrough); // save comments
46 define_key(newsblur_keymap, "e", null, $fallthrough); // email story
48 // Application
49 define_key(newsblur_keymap, "U", null, $fallthrough); // hide sites
50 define_key(newsblur_keymap, "T", null, $fallthrough); // hide story titles
51 define_key(newsblur_keymap, "a", null, $fallthrough); // add new rss feed
52 define_key(newsblur_keymap, "t", null, $fallthrough); // open story trainer
53 define_key(newsblur_keymap, "f", null, $fallthrough); // open site/feed trainer
54 define_key(newsblur_keymap, "+", null, $fallthrough); // change intelligence
55 define_key(newsblur_keymap, "-", null, $fallthrough); // change intelligence
58 define_keymaps_page_mode("newsblur-mode",
59     build_url_regexp($domain = /(?:[a-z]+\.)?newsblur/),
60     { normal: newsblur_keymap },
61     $display_name = "Newsblur");
63 page_mode_activate(newsblur_mode);
65 provide("newsblur");