charset: full titles for abbreviated unicode scripts
[sheet.git] / less.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'less cheat sheet',
5         version => '1.1',
6         description => [
7                 "Default bindings of the less pager.",
8                 "Clearly shows how much it's more than more.",
9         ],
10         keywords => [qw'
11                 less sheet cheat keys pager more
12                 shortkey reference keyboard commands options overview
13         '],
14         stylesheet => [qw'light dark circus mono red terse'],
15         keys => 1,
16 });
17
18 :>
19 <h1>Less cheat sheet</h1>
20
21 <h2>normal pager (default)</h2>
22
23 <:
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]);
30 :>
31
32 <hr>
33
34 <div class="help">
35         <div class="left">
36 <: $keys->print_legend('legend-types', ['g1' .. 'g4', 'g7', 'g8']) :>
37         </div>
38
39         <div class="right">
40 <: $keys->print_legend('legend-options', [qw( arg more )]) :>
41
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>
50                 </ul>
51         </div>
52 </div>
53