X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/eeaaa3c862485faf9f26c5646b2c9e94d03657ab..079d4af84d3b9f49cd072b3e53e3bdfef3887173:/less.plp
diff --git a/less.plp b/less.plp
index f701ca8..206de5e 100644
--- a/less.plp
+++ b/less.plp
@@ -2,7 +2,7 @@
Html({
title => 'less cheat sheet',
- version => 'v1.1',
+ version => '1.1',
description => [
"Default bindings of the less pager.",
"Clearly shows how much it's more than more.",
@@ -11,8 +11,7 @@ Html({
less sheet cheat keys pager more
shortkey reference keyboard commands options overview
'],
- charset => $sign{charset},
- stylesheet => [qw'light dark circus mono red terse'],
+ stylesheet => [qw( light dark circus mono red )],
keys => 1,
});
@@ -22,36 +21,10 @@ Html({
normal pager (default)
<:
-use Shiar_Sheet::Keyboard 2;
+use Shiar_Sheet::Keyboard 2.07;
my $info = do 'less.eng.inc.pl' or die $@;
-$info->{def} = do 'less.inc.pl';
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', [qw( ci pm po co mo mv )]) :>
-
-
-
-<: $keys->print_legend('legend-options', [qw( arg more )]) :>
-
-
- - keyboard map is
- <:= $get{map} ? 'set to ' : '' :><:= $keys->{map} :>
-
- ascii mode is
- <:= defined $sign{-ascii} && 'forced ' :><:=
- $sign{-ascii} ? 'on' : 'off' :>
-
- 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);