feedly-mode
authorArtur Malabarba <bruce.connor.am@gmail.com>
Wed, 23 Oct 2013 18:02:23 +0000 (23 19:02 +0100)
committerJohn Foerch <jjfoerch@earthlink.net>
Sun, 27 Oct 2013 18:31:07 +0000 (27 14:31 -0400)
Implement a page-mode for cloud.feedly.com.

modules/page-modes/feedly.js [new file with mode: 0644]

diff --git a/modules/page-modes/feedly.js b/modules/page-modes/feedly.js
new file mode 100644 (file)
index 0000000..d75648c
--- /dev/null
@@ -0,0 +1,48 @@
+/**
+ * (C) Copyright 2013 Artur Malabarba
+ *
+ * Use, modification, and distribution are subject to the terms specified in the
+ * COPYING file.
+**/
+
+require("content-buffer.js");
+
+define_keymap("feedly_keymap");
+
+// Help menu
+define_key(feedly_keymap, "?", null, $fallthrough); // keyboard shortcuts
+
+// Navigation
+define_key(feedly_keymap, "h", null, $fallthrough); // home
+define_key(feedly_keymap, "g", null, $fallthrough); // magic bar
+define_key(feedly_keymap, "l", null, $fallthrough); // saved article
+define_key(feedly_keymap, "a", null, $fallthrough); // add content
+define_key(feedly_keymap, "r", null, $fallthrough); // refresh
+define_key(feedly_keymap, "J", null, $fallthrough); // next feed/category
+define_key(feedly_keymap, "K", null, $fallthrough); // previous feed/category
+
+// Lists
+define_key(feedly_keymap, "j", null, $fallthrough); // inline next article
+define_key(feedly_keymap, "k", null, $fallthrough); // inline previous
+define_key(feedly_keymap, "n", null, $fallthrough); // select next article
+define_key(feedly_keymap, "p", null, $fallthrough); // select previous
+define_key(feedly_keymap, "o", null, $fallthrough); // inline/close
+define_key(feedly_keymap, "A", null, $fallthrough); // mark all as read
+define_key(feedly_keymap, "v", null, $fallthrough); // view original new tab
+
+// Selected Article
+define_key(feedly_keymap, "m", null, $fallthrough); // toggle mark as read
+define_key(feedly_keymap, "x", null, $fallthrough); // minimize and hide
+define_key(feedly_keymap, "s", null, $fallthrough); // save for later
+define_key(feedly_keymap, "b", null, $fallthrough); // buffer
+define_key(feedly_keymap, "c", null, $fallthrough); // clip to evernote
+define_key(feedly_keymap, "V", null, $fallthrough); // preview
+
+define_keymaps_page_mode("feedly-mode",
+    build_url_regexp($domain = "cloud.feedly"),
+    { normal: feedly_keymap },
+    $display_name = "Feedly");
+
+page_mode_activate(feedly_mode);
+
+provide("feedly");