vimperator: initial keyboard commands
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 6 Nov 2008 02:03:52 +0000 (02:03 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 6 Jan 2009 23:37:19 +0000 (23:37 +0000)
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 [new file with mode: 0644]

diff --git a/vimperator.inc.pl b/vimperator.inc.pl
new file mode 100644 (file)
index 0000000..6f18abd
--- /dev/null
@@ -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
+