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 <dl class="legend legend-types">
39 <dd>Temporary message display (or related option).
41 <dd>Regular file position panning (or option).
43 <dd>Other file position manipulation (").
45 <dd>Go to matching content (").
47 <dd>Alter open file buffer (").
49 <dd>Other commands and options.
54 <dl class="legend legend-options">
55 <dt>key<:= $sign{arg} :>
56 <dd>Commands with a dot need a char argument afterwards.
58 <dd>A small subset is compatible with `more`.
61 <ul class="legend legend-set">
62 <li>keyboard <strong>map</strong> is
63 <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
64 <li><strong>ascii</strong> mode is
65 <:= defined $sign{-ascii} && 'forced ' :><em><:=
66 $sign{-ascii} ? 'on' : 'off' :></em>
67 <li><strong>keys</strong> are
68 <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
69 !exists $get{keys} && ' by default' :>
70 <li>default <strong>style</strong> is
71 <:= defined $get{style} && 'set to ' :><em><:= $style :></em>