From 41c3aa4f3f9017f7d5933ec3e3535124a2b4e6f6 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 6 Nov 2008 02:03:52 +0000 Subject: [PATCH] vimperator: initial keyboard commands A preliminary description of key functionality in the Firefox plugin Vimperator, version 1.2. Not yet shown on any page though; to be improved first. --- vimperator.inc.pl | 101 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 vimperator.inc.pl diff --git a/vimperator.inc.pl b/vimperator.inc.pl new file mode 100644 index 0000000..6f18abd --- /dev/null +++ b/vimperator.inc.pl @@ -0,0 +1,101 @@ +use utf8; + +'' => { + desc => 'normal mode', + + '~' => ["open home$sign{_}dir"], + '@' => ["play macro", 'arg'], + '%' => ["to line pct", 'pm'], #TODO: G? + '0' => ["left of page", 'pm'], + '$' => ["right of page", 'pm'], + '#' => ["rev. find word", 'pm'], + '*' => ["find word", 'pm'], + #'+' + #'`' + '^^'=> ["last tab"], + '?' => ["find rev.", 'pm arg modec'], + '/' => ["find", 'pm arg modec'], + + 'a' => ["add bookm$sign{_}ark"], + 'A' => ["toggle bookm$sign{_}ark$sign{_}ed"], + '^a'=> ["increment url nr"], + 'b' => ["to buffer"], + 'B' => ["list buffers"], + '^b'=> ["page up", 'pm'], + '^c'=> ["stop loading"], + 'd' => ["close tab"], + 'D' => ["close left tab"], + #'^d' + #'^u' + '^i'=> 'L', + '^e'=> 'j', + 'f' => ["quick$sign{_}hint mode", 'arg'], + 'F' => ["f in tab", 'arg'], + '^f'=> ["page down", 'pm'], # spacebar + 'g' => ["extra cmds", 'me modeg'], + 'G' => ["last/% line", 'pm'], + '^g'=> ["file name"], + 'h' => [$sign{left}, 'pm'], + 'H' => ["page back"], + 'j' => [$sign{down}, 'pm'], + 'k' => [$sign{up}, 'pm'], + 'l' => [$sign{right}, 'pm'], + 'L' => ["page forw$sign{_}ard"], + 'M' => ["mark url", 'arg'], + 'm' => ["mark line", 'arg'], + 'n' => ["find next", 'pm'], + 'N' => ["find prev$sign{_}ious", 'pm'], + '^n'=> 'gt', + 'o' => ["open", ''], + 'O' => ["alter url"], + '^o'=> 'H', + 'p' => ["open pasted url"], + 'P' => ["p in tab"], + '^p'=> 'gT', + 'q' => ["record macro", 'arg'], + 'r' => ["reload page"], + 'R' => ["reload uncach$sign{_}e$sign{_}d"], + 't' => ["tab open new"], + 'T' => ["tab open curr$sign{_}ent"], + '^v'=> ["pass single", 'arg'], + 'u' => ["restore closed tab"], + 'y' => ["copy url"], + 'Y' => ["copy select$sign{_}ion"], + '^y'=> 'k', + 'Z' => ["quit", 'me modeZ arg'], + '^z'=> ["pass throu$sign{_}gh"], +}, # normal mode + +g => { + desc => 'extended commands (g)', + lead => 'g', + + '0' => ["first tab"], + '$' => ["last tab"], + '^' => 'g0', + + 'b' => ["repeat buffer cmd"], + 'B' => ["reverse gb"], + 'i' => ["last input field"], + '^g'=> ["file details"], + 'g' => ["first line"], + 'f' => ["view source"], + 'F' => ["source extern$sign{_}al"], + 'm' => ["repeat output"], + 'n' => ["tabopen url mark", '', 'Go in New tab'], + 'o' => ["open url mark"], + 'P' => ["P inactive"], + 'h' => ["open home$sign{_}page"], + 'H' => ["tab with home$sign{_}page"], + 'u' => ["parent dir$sign{_}ectory"], + 'U' => ["site root"], +}, # mode g + +Z => { + desc => 'quit commands (Z)', + lead => 'Z', + + 'Q' => ["quit no save"], + 'Z' => ["quit save ses$sign{_}s$sign{_}ion"], +}, # mode Z + -- 2.30.0