X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/81aefba6ac586eccbe18b4e90efc175e34fff5ad..v1.14-7-ge90c9ada43:/less.plp?ds=sidebyside
diff --git a/less.plp b/less.plp
index 52cc5f1..e40d37c 100644
--- a/less.plp
+++ b/less.plp
@@ -11,7 +11,7 @@ Html({
less sheet cheat keys pager more
shortkey reference keyboard commands options overview
'],
- stylesheet => [qw'light dark circus mono red terse'],
+ stylesheet => [qw( light dark circus mono red )],
keys => 1,
});
@@ -21,33 +21,10 @@ Html({
normal pager (default)
<:
-use Shiar_Sheet::Keyboard 2;
-my $info = do 'less.eng.inc.pl' or die $@;
-$info->{def} = do 'less.inc.pl';
+use Shiar_Sheet::Keyboard 2.07;
+my $info = Data('less.eng');
my $keys = Shiar_Sheet::Keyboard->new($info);
$keys->map($get{map}) or undef $get{map};
$keys->print_rows($get{rows}, [1,0]);
-:>
-
-
-
-
-
-<: $keys->print_legend('legend-types', ['g1' .. 'g4', 'g7', 'g8']) :>
-
-
-
-<: $keys->print_legend('legend-options', [qw( arg more )]) :>
-
-
- - 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);