1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 06:31:28 +00:00

rename plugin main class files

This commit is contained in:
Andrew Dolgov
2012-12-30 13:36:40 +04:00
parent 0e44c2a0d4
commit e938b1de11
25 changed files with 1 additions and 1 deletions

29
plugins/swap_jk/init.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
class Swap_JK extends Plugin {
private $link;
private $host;
function about() {
return array(1.0,
"Swap j and k hotkeys (for vi brethren)",
"fox");
}
function init($host) {
$this->link = $host->get_link();
$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;
}
}
?>