style: common disfavoured class .ex
[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 <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 2;
34 my $info = do 'mutt.eng.inc.pl' or die $@;
35 $info->{def} = do 'mutt.inc.pl';
36 my $keys = Shiar_Sheet::Keyboard->new($info);
37 $keys->map($get{map}) or undef $get{map};
38 $keys->print_rows($get{rows});
39 :>
40 </ul>
41
42 <hr>
43
44 <div class="help">
45         <div class="left">
46                 <dl class="legend legend-types">
47                 <dt class="ci">aside
48                         <dd>Temporarily display something without changing state.
49                 <dt class="pm">select
50                         <dd>Scroll list and/or select a different line.
51                 <dt class="po">search
52                         <dd>Go to a specific message entry.
53                 <dt class="co">edit
54                         <dd>Modify message flags or contents.
55                 <dt class="mi">command
56                         <dd>Any other action which does not alter an existing message.
57                 <dt class="mo">send
58                         <dd>Prepare and/or send a (new) message.
59                 <dt class="mv">leave
60                         <dd>Exit the opened folder.
61                 <dt class="me">display
62                         <dd>Permanently alter/toggle current view.
63                 </dl>
64         </div>
65
66         <div class="right">
67                 <dl class="legend legend-options">
68                 <dt>key<:= $sign{arg} :>
69                         <dd>Commands with a dot need an argument afterwards.
70                 </dl>
71
72                 <ul class="legend legend-set">
73                 <li>keyboard <strong>map</strong> is
74                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
75                 <li><strong>ascii</strong> mode is
76                         <:= defined $sign{-ascii} && 'forced ' :><em><:=
77                                 $sign{-ascii} ? 'on' : 'off' :></em>
78                 <li><strong>keys</strong> are
79                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
80                                 !exists $get{keys} && ' by default' :>
81                 <li>default <strong>style</strong> is
82                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
83                 </ul>
84         </div>
85 </div>
86