X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/881b4a69e47004c59f35979620b65fd3d4aaaf16..c1d474c10566cbc9591267934dfa103a61f7c486:/vimperator.plp?ds=sidebyside
diff --git a/vimperator.plp b/vimperator.plp
index 7d1b81c..bb4bd9a 100644
--- a/vimperator.plp
+++ b/vimperator.plp
@@ -2,7 +2,7 @@
Html({
title => 'vimperator cheat sheet',
- version => 'v1.2',
+ version => '1.2',
description => [
"Interactive cheat sheet for the Vimperator Firefox extension,",
"describing the function of each key.",
@@ -11,7 +11,7 @@ Html({
vimperator firefox vim iceweasel sheet cheat reference overview
commands keyboard browser
'],
- stylesheet => [qw'light dark circus mono red terse'],
+ stylesheet => [qw( light dark circus mono red )],
keys => 1,
});
@@ -21,35 +21,12 @@ Html({
normal mode (default)
<:
-use Shiar_Sheet::Keyboard 2;
+use Shiar_Sheet::Keyboard 2.07;
my $info = do 'vimperator.eng.inc.pl' or die $@;
-$info->{def} = do 'vimperator.inc.pl';
$_->{"\e"} = ['mv mode', "normal mode"] for values %{ $info->{def} };
delete $info->{def}->{''}->{"\e"};
my $keys = Shiar_Sheet::Keyboard->new($info);
$keys->map($get{map}) or undef $get{map};
$keys->print_rows($get{rows});
-:>
-
-
-
-
-
-<: $keys->print_legend('legend-types', [qw( ci pm po co cp mi mo mv me )]) :>
-
-
-
-<: $keys->print_legend('legend-options', [qw( arg args )]) :>
-
-
- - keyboard map is
- <:= $get{map} ? 'set to ' : '' :><:= $keys->{map} :>
-
- keys are
- <:= $showkeys ? 'always shown' : 'hidden if unassigned' :><:=
- !exists $get{keys} && ' by default' :>
-
- default style is
- <:= defined $get{style} && 'set to ' :><:= $style :>
-
-
-
+$keys->print_legends(\%get);