keyboard: categorise keys by result similarity
[sheet.git] / vimperator.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'vimperator cheat sheet',
5         version => '1.2',
6         description => [
7                 "Interactive cheat sheet for the Vimperator Firefox extension,",
8                 "describing the function of each key.",
9         ],
10         keywords => [qw'
11                 vimperator firefox vim iceweasel sheet cheat reference overview
12                 commands keyboard browser
13         '],
14         stylesheet => [qw( light dark circus mono red )],
15         keys => 1,
16 });
17
18 :>
19 <h1>Vimperator cheat sheet</h1>
20
21 <h2>normal mode (default)</h2>
22
23 <:
24 use Shiar_Sheet::Keyboard 2.07;
25 my $info = do 'vimperator.eng.inc.pl' or die $@;
26 $_->{"\e"} = ['mv mode', "normal mode"] for values %{ $info->{def} };
27 delete $info->{def}->{''}->{"\e"};
28 my $keys = Shiar_Sheet::Keyboard->new($info);
29 $keys->map($get{map}) or undef $get{map};
30 $keys->print_rows($get{rows});
31 $keys->print_legends(\%get);
32