1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 08:15:55 +00:00

Created hotkeys_force_top plugin

Renamed swap_jk to match new naming scheme.
This commit is contained in:
Nathan Warner
2020-05-30 22:45:41 -06:00
parent b39e615683
commit f8d96543de
3 changed files with 32 additions and 2 deletions

View File

@@ -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;
}
}