4 title => 'less cheat sheet',
7 "Default bindings of the less pager.",
8 "Clearly shows how much it's more than more.",
11 less sheet cheat keys pager more
12 shortkey reference keyboard commands options overview
14 charset => $sign{charset},
15 stylesheet => [qw'light dark circus mono red terse'],
20 <h1>Less cheat sheet</h1>
22 <h2>normal pager (default)</h2>
25 use Shiar_Sheet::Keyboard 2;
26 my $info = do 'less.eng.inc.pl' or die $@;
27 $info->{def} = do 'less.inc.pl';
28 my $keys = Shiar_Sheet::Keyboard->new($info);
29 $keys->map($get{map}) or undef $get{map};
30 $keys->print_rows($get{rows}, [1,0]);
37 <: $keys->print_legend('legend-types', [qw( ci pm po co mo mv )]) :>
41 <: $keys->print_legend('legend-options', [qw( arg more )]) :>
43 <ul class="legend legend-set">
44 <li>keyboard <strong>map</strong> is
45 <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
46 <li><strong>ascii</strong> mode is
47 <:= defined $sign{-ascii} && 'forced ' :><em><:=
48 $sign{-ascii} ? 'on' : 'off' :></em>
49 <li><strong>keys</strong> are
50 <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
51 !exists $get{keys} && ' by default' :>
52 <li>default <strong>style</strong> is
53 <:= defined $get{style} && 'set to ' :><em><:= $style :></em>