4 use Shiar_Sheet::KeySigns qw(%sign);
6 $header{content_type} = "text/html; charset=$sign{charset}";
8 :><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
9 "http://www.w3.org/TR/html4/loose.dtd">
13 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
14 <title>vimperator cheat sheet</title>
15 <meta name="description" content="Interactive cheat sheet for the Vimperator Firefox extension, describing the function of each key.">
16 <meta name="keywords" content="vimperator, firefox, vim, iceweasel, sheet, cheat, reference, overview, commands, keyboard, browser">
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>'
23 print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
24 if $showkeys and $get{keys} eq 'ghost';
26 <link rel="icon" type="image/png" href="/clip.png">
27 <script type="text/javascript" src="/keys.js"></script>
29 <body id="vimperator">
31 <h1>Vimperator cheat sheet</h1>
33 <h2>normal mode (default)</h2>
38 <ul class="keys omni">
39 <li class="mv chr27" onclick="setmode()"><b>Esc</b> normal mode
40 <!-- not as static anymore, but never bothered; just see ^[ -->
45 use Shiar_Sheet::Keyboard;
46 my $keys = Shiar_Sheet::Keyboard->new({do 'vimperator.inc.pl'});
47 $keys->map($get{map}) or undef $get{map};
48 $keys->print_rows($get{rows});
56 <dl class="legend legend-types">
58 <dd>Displays something without any permanent consequences.
60 <dd>Move cursor, scroll window, focus buffer element.
62 <dd>Tab or window navigation/selection.
66 <dd>Browse to a location in the current tab.
67 <dt class="mi">tab open
68 <dd>Browse somewhere in a new tab.
69 <dt class="mo">browser
70 <dd>Other browser action.
72 <dd>Enter a different mode.
73 <dt class="me">key cmd
74 <dd>Additional key commands (click for overview).
79 <dl class="legend legend-options">
80 <dt>key<:= $sign{arg} :>
81 <dd>Commands with a dot need a char argument afterwards.
82 <dt>key<:= $sign{args} :>
83 <dd>Commands with two dots require variable arguments afterwards.
86 <ul class="legend legend-set">
87 <li>keyboard <strong>map</strong> is
88 <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
89 <li><strong>ascii</strong> mode is
90 <:= defined $sign{-ascii} && 'forced ' :><em><:=
91 $sign{-ascii} ? 'on' : 'off' :></em>
92 <li><strong>keys</strong> are
93 <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
94 !exists $get{keys} && ' by default' :>
95 <li>default <strong>style</strong> is
96 <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
102 <a href="/" rel="home">sheet.shiar.nl</a>/vimperator.<a href="/source/vimperator.plp"
103 rel="code" title="Written in Perl">plp</a>
104 <a href="http://git.shiar.nl/sheet.git/history/HEAD:/vimperator.plp"
105 rel="vcs-git" title="Git repository"><:= $VERSION :></a>
106 created by <a href="http://shiar.nl/" rel="author">Shiar</a> <:= $sign{sep} :>
107 <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="copyright"
108 title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>