Automated build for v0.01
This commit is contained in:
30
plugins/swap_jk/init.php
Normal file
30
plugins/swap_jk/init.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
class 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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user