sitemap to help robots prioritise pages
[sheet.git] / mutt.plp
1 <(common.inc.plp)><:
2         our $VERSION = 'v1.0';
3
4         use Shiar_Sheet::KeySigns qw(%sign);
5
6         $header{content_type} = "text/html; charset=$sign{charset}";
7
8 :><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
9  "http://www.w3.org/TR/html4/loose.dtd">
10 <html lang="en">
11
12 <head>
13 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
14 <title>mutt cheat sheet</title>
15 <meta name="description" content="Keyboard functionality overview sheet for the Mutt e-mail client.">
16 <meta name="keywords" content="mutt, MUA, email, client, sheet, cheat, reference, overview, commands, keyboard">
17 <:= stylesheet(qw'light dark circus mono red terse') :>
18 <!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
19 <!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
20         our $showkeys = exists $get{keys} && $get{keys} ne '0';
21         print "\n".'<style type="text/css"> .no {visibility:hidden} </style>'
22                 unless $showkeys;
23         print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
24                 if $showkeys and $get{keys} eq 'ghost';
25 :>
26 <script type="text/javascript" src="/keys.js"></script>
27
28 <body id="mutt">
29
30 <h1>Mutt cheat sheet</h1>
31
32 <h2>index (default)</h2>
33
34 <ul id="rows">
35
36 <li class="row">
37         <ul class="keys omni">
38         <li class="me chr27" onclick="setmode()"><b>Esc</b> +
39                 <!-- not as static anymore, but never bothered; just see ^[ -->
40         </ul>
41 </li>
42
43 <:
44 use Shiar_Sheet::Keyboard;
45 my $keys = Shiar_Sheet::Keyboard->new({do 'mutt.inc.pl'});
46 $keys->map($get{map}) or undef $get{map};
47 $keys->print_rows($get{rows});
48 :>
49 </ul>
50
51 <hr>
52
53 <div class="help">
54         <div class="left">
55                 <dl class="legend legend-types">
56                 <dt class="ci">aside
57                         <dd>Temporarily display something without changing state.
58                 <dt class="pm">select
59                         <dd>Scroll list and/or select a different line.
60                 <dt class="po">search
61                         <dd>Go to a specific message entry.
62                 <dt class="co">edit
63                         <dd>Modify message flags or contents.
64                 <dt class="mi">command
65                         <dd>Any other action which does not alter an existing message.
66                 <dt class="mo">send
67                         <dd>Prepare and/or send a (new) message.
68                 <dt class="mv">leave
69                         <dd>Exit the opened folder.
70                 <dt class="me">display
71                         <dd>Permanently alter/toggle current view.
72                 </dl>
73         </div>
74
75         <div class="right">
76                 <dl class="legend legend-options">
77                 <dt>key<:= $sign{arg} :>
78                         <dd>Commands with a dot need an argument afterwards.
79                 </dl>
80
81                 <ul class="legend legend-set">
82                 <li>keyboard <strong>map</strong> is
83                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
84                 <li><strong>ascii</strong> mode is
85                         <:= defined $sign{-ascii} && 'forced ' :><em><:=
86                                 $sign{-ascii} ? 'on' : 'off' :></em>
87                 <li><strong>keys</strong> are
88                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
89                                 !exists $get{keys} && ' by default' :>
90                 <li>default <strong>style</strong> is
91                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
92                 </ul>
93         </div>
94 </div>
95
96 <p class="footer">
97         <a href="/" rel="home">sheet.shiar.nl</a>/mutt.<a href="/source/mutt.plp"
98          rel="code" title="Written in Perl">plp</a>
99         <a href="http://git.shiar.nl/sheet.git/history/HEAD:/mutt.plp"
100          rel="vcs-git" title="Git repository"><:= $VERSION :></a>
101         created by <a href="http://shiar.nl/" rel="author">Shiar</a> <:= $sign{sep} :>
102         <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="copyright"
103          title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>
104 </p>
105
106 </html>