summaryrefslogtreecommitdiff
path: root/plugins/hotkeys_swap_jk
diff options
context:
space:
mode:
authorNathan Warner <[email protected]>2020-05-30 22:45:41 -0600
committerNathan Warner <[email protected]>2020-05-30 22:45:41 -0600
commitf8d96543de36dd2d9a223fd017b6c5f671ff3e6a (patch)
treed39e54107727f95d75fe92708806cf1d6dd6b02b /plugins/hotkeys_swap_jk
parentb39e615683dae2d9b08939b7fb131cb8607c8415 (diff)
Created hotkeys_force_top plugin
Renamed swap_jk to match new naming scheme.
Diffstat (limited to 'plugins/hotkeys_swap_jk')
-rw-r--r--plugins/hotkeys_swap_jk/init.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/hotkeys_swap_jk/init.php b/plugins/hotkeys_swap_jk/init.php
new file mode 100644
index 000000000..b1e3dbe04
--- /dev/null
+++ b/plugins/hotkeys_swap_jk/init.php
@@ -0,0 +1,30 @@
+<?php
+class Hotkeys_Swap_JK extends Plugin {
+
+ private $host;
+
+ function about() {
+ return array(1.0,
+ "Swap j and k hotkeys (for vi brethren)",
+ "fox");
+ }
+
+ function init($host) {
+ $this->host = $host;
+
+ $host->add_hook($host::HOOK_HOTKEY_MAP, $this);
+ }
+
+ function hook_hotkey_map($hotkeys) {
+
+ $hotkeys["j"] = "next_feed";
+ $hotkeys["k"] = "prev_feed";
+
+ return $hotkeys;
+ }
+
+ function api_version() {
+ return 2;
+ }
+
+}