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>
27 use Shiar_Sheet::Keyboard 2;
28 my $info = do 'less.eng.inc.pl' or die $@;
29 $info->{def} = do 'less.inc.pl';
30 my $keys = Shiar_Sheet::Keyboard->new($info);
31 $keys->map($get{map}) or undef $get{map};
32 $keys->print_rows($get{rows}, [1,0]);
40 <dl class="legend legend-types">
42 <dd>Temporary message display (or related option).
44 <dd>Regular file position panning (or option).
46 <dd>Other file position manipulation (").
48 <dd>Go to matching content (").
50 <dd>Alter open file buffer (").
52 <dd>Other commands and options.
57 <dl class="legend legend-options">
58 <dt>key<:= $sign{arg} :>
59 <dd>Commands with a dot need a char argument afterwards.
61 <dd>A small subset is compatible with `more`.
64 <ul class="legend legend-set">
65 <li>keyboard <strong>map</strong> is
66 <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
67 <li><strong>ascii</strong> mode is
68 <:= defined $sign{-ascii} && 'forced ' :><em><:=
69 $sign{-ascii} ? 'on' : 'off' :></em>
70 <li><strong>keys</strong> are
71 <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
72 !exists $get{keys} && ' by default' :>
73 <li>default <strong>style</strong> is
74 <:= defined $get{style} && 'set to ' :><em><:= $style :></em>