script: add brahmic comparison table
[sheet.git] / mutt.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'mutt cheat sheet',
5         version => 'v1.0',
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 <ul id="rows">
24
25 <li class="row">
26         <ul class="keys omni">
27         <li class="me chr27" onclick="setmode()"><b>Esc</b> +
28                 <!-- not as static anymore, but never bothered; just see ^[ -->
29         </ul>
30 </li>
31
32 <:
33 use Shiar_Sheet::Keyboard;
34 my $keys = Shiar_Sheet::Keyboard->new({do 'mutt.inc.pl'});
35 $keys->map($get{map}) or undef $get{map};
36 $keys->print_rows($get{rows});
37 :>
38 </ul>
39
40 <hr>
41
42 <div class="help">
43         <div class="left">
44                 <dl class="legend legend-types">
45                 <dt class="ci">aside
46                         <dd>Temporarily display something without changing state.
47                 <dt class="pm">select
48                         <dd>Scroll list and/or select a different line.
49                 <dt class="po">search
50                         <dd>Go to a specific message entry.
51                 <dt class="co">edit
52                         <dd>Modify message flags or contents.
53                 <dt class="mi">command
54                         <dd>Any other action which does not alter an existing message.
55                 <dt class="mo">send
56                         <dd>Prepare and/or send a (new) message.
57                 <dt class="mv">leave
58                         <dd>Exit the opened folder.
59                 <dt class="me">display
60                         <dd>Permanently alter/toggle current view.
61                 </dl>
62         </div>
63
64         <div class="right">
65                 <dl class="legend legend-options">
66                 <dt>key<:= $sign{arg} :>
67                         <dd>Commands with a dot need an argument afterwards.
68                 </dl>
69
70                 <ul class="legend legend-set">
71                 <li>keyboard <strong>map</strong> is
72                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
73                 <li><strong>ascii</strong> mode is
74                         <:= defined $sign{-ascii} && 'forced ' :><em><:=
75                                 $sign{-ascii} ? 'on' : 'off' :></em>
76                 <li><strong>keys</strong> are
77                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
78                                 !exists $get{keys} && ' by default' :>
79                 <li>default <strong>style</strong> is
80                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
81                 </ul>
82         </div>
83 </div>
84