writing: annotate brahmic script ancestry in include
[sheet.git] / mutt.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'mutt cheat sheet',
5         version => '1.2',
6         description => [
7                 "Cheat sheet for the Mutt e-mail client,",
8                 "showing the default binding for each key.",
9         ],
10         keywords => [qw'
11                 mutt MUA email client sheet cheat reference overview commands keyboard
12         '],
13         stylesheet => [qw'light dark circus mono red terse'],
14         keys => 1,
15 });
16
17 :>
18 <h1>Mutt cheat sheet</h1>
19
20 <h2>index (default)</h2>
21
22 <:
23 use Shiar_Sheet::Keyboard 2;
24 my $info = do 'mutt.eng.inc.pl' or die $@;
25 $info->{def} = do 'mutt.inc.pl';
26 my $keys = Shiar_Sheet::Keyboard->new($info);
27 $keys->map($get{map}) or undef $get{map};
28 $keys->print_rows($get{rows});
29 :>
30
31 <hr>
32
33 <div class="help">
34         <div class="left">
35 <: $keys->print_legend('legend-types', ['g1' .. 'g4', 'g6' .. 'g9']) :>
36         </div>
37
38         <div class="right">
39 <: $keys->print_legend('legend-options', [qw( arg )]) :>
40
41                 <ul class="legend legend-set">
42                 <li>keyboard <strong>map</strong> is
43                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
44                 <li><strong>keys</strong> are
45                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
46                                 !exists $get{keys} && ' by default' :>
47                 <li>default <strong>style</strong> is
48                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
49                 </ul>
50         </div>
51 </div>
52