Html({
title => 'less cheat sheet',
- version => 'v1.1',
+ version => '1.1',
description => [
"Default bindings of the less pager.",
"Clearly shows how much it's more than more.",
less sheet cheat keys pager more
shortkey reference keyboard commands options overview
'],
- charset => $sign{charset},
- stylesheet => [qw'light dark circus mono red terse'],
+ stylesheet => [qw( light dark circus mono red )],
keys => 1,
});
<h2>normal pager (default)</h2>
-<ul id="rows">
-
<:
use Shiar_Sheet::Keyboard 2;
my $info = do 'less.eng.inc.pl' or die $@;
-$info->{def} = do 'less.inc.pl';
my $keys = Shiar_Sheet::Keyboard->new($info);
$keys->map($get{map}) or undef $get{map};
$keys->print_rows($get{rows}, [1,0]);
:>
-</ul>
<hr>
<div class="help">
<div class="left">
- <dl class="legend legend-types">
- <dt class="ci">info
- <dd>Temporary message display (or related option).
- <dt class="pm">move
- <dd>Regular file position panning (or option).
- <dt class="po">jump
- <dd>Other file position manipulation (").
- <dt class="co">search
- <dd>Go to matching content (").
- <dt class="mo">file
- <dd>Alter open file buffer (").
- <dt class="mv">misc
- <dd>Other commands and options.
- </dl>
+<: $keys->print_legend('legend-types', ['g1' .. 'g4', 'g7', 'g8']) :>
</div>
<div class="right">
- <dl class="legend legend-options">
- <dt>key<:= $sign{arg} :>
- <dd>Commands with a dot need a char argument afterwards.
- <dt class="more">more
- <dd>A small subset is compatible with `more`.
- </dl>
+<: $keys->print_legend('legend-options', [qw( arg more )]) :>
<ul class="legend legend-set">
<li>keyboard <strong>map</strong> is
<:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
- <li><strong>ascii</strong> mode is
- <:= defined $sign{-ascii} && 'forced ' :><em><:=
- $sign{-ascii} ? 'on' : 'off' :></em>
<li><strong>keys</strong> are
<em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
!exists $get{keys} && ' by default' :>