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 stylesheet => [qw'light dark circus mono red terse'],
19 <h1>Less cheat sheet</h1>
21 <h2>normal pager (default)</h2>
24 use Shiar_Sheet::Keyboard 2;
25 my $info = do 'less.eng.inc.pl' or die $@;
26 $info->{def} = do 'less.inc.pl';
27 my $keys = Shiar_Sheet::Keyboard->new($info);
28 $keys->map($get{map}) or undef $get{map};
29 $keys->print_rows($get{rows}, [1,0]);
36 <: $keys->print_legend('legend-types', ['g1' .. 'g4', 'g7', 'g8']) :>
40 <: $keys->print_legend('legend-options', [qw( arg more )]) :>
42 <ul class="legend legend-set">
43 <li>keyboard <strong>map</strong> is
44 <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
45 <li><strong>keys</strong> are
46 <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
47 !exists $get{keys} && ' by default' :>
48 <li>default <strong>style</strong> is
49 <:= defined $get{style} && 'set to ' :><em><:= $style :></em>