sc: legend besides units table
[sheet.git] / mutt.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'mutt cheat sheet',
5         version => 'v1.1',
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         charset => $sign{charset},
14         stylesheet => [qw'light dark circus mono red terse'],
15         keys => 1,
16 });
17
18 :>
19 <h1>Mutt cheat sheet</h1>
20
21 <h2>index (default)</h2>
22
23 <:
24 use Shiar_Sheet::Keyboard 2;
25 my $info = do 'mutt.eng.inc.pl' or die $@;
26 $info->{def} = do 'mutt.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});
30 :>
31
32 <hr>
33
34 <div class="help">
35         <div class="left">
36                 <dl class="legend legend-types">
37                 <dt class="ci">aside
38                         <dd>Temporarily display something without changing state.
39                 <dt class="pm">select
40                         <dd>Scroll list and/or select a different line.
41                 <dt class="po">search
42                         <dd>Go to a specific message entry.
43                 <dt class="co">edit
44                         <dd>Modify message flags or contents.
45                 <dt class="mi">command
46                         <dd>Any other action which does not alter an existing message.
47                 <dt class="mo">send
48                         <dd>Prepare and/or send a (new) message.
49                 <dt class="mv">leave
50                         <dd>Exit the opened folder.
51                 <dt class="me">display
52                         <dd>Permanently alter/toggle current view.
53                 </dl>
54         </div>
55
56         <div class="right">
57                 <dl class="legend legend-options">
58                 <dt>key<:= $sign{arg} :>
59                         <dd>Commands with a dot need an argument afterwards.
60                 </dl>
61
62                 <ul class="legend legend-set">
63                 <li>keyboard <strong>map</strong> is
64                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
65                 <li><strong>ascii</strong> mode is
66                         <:= defined $sign{-ascii} && 'forced ' :><em><:=
67                                 $sign{-ascii} ? 'on' : 'off' :></em>
68                 <li><strong>keys</strong> are
69                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
70                                 !exists $get{keys} && ' by default' :>
71                 <li>default <strong>style</strong> is
72                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
73                 </ul>
74         </div>
75 </div>
76