(common.inc.plp)><:
Html({
title => 'less cheat sheet',
version => 'v1.1',
description => [
"Default bindings of the less pager.",
"Clearly shows how much it's more than more.",
],
keywords => [qw'
less sheet cheat keys pager more
shortkey reference keyboard commands options overview
'],
stylesheet => [qw'light dark circus mono red terse'],
keys => 1,
});
:>
Less cheat sheet
normal pager (default)
<:
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]);
:>
<: $keys->print_legend('legend-types', [qw( ci pm po co mo mv )]) :>
<: $keys->print_legend('legend-options', [qw( arg more )]) :>
- keyboard map is
<:= $get{map} ? 'set to ' : '' :><:= $keys->{map} :>
- keys are
<:= $showkeys ? 'always shown' : 'hidden if unassigned' :><:=
!exists $get{keys} && ' by default' :>
- default style is
<:= defined $get{style} && 'set to ' :><:= $style :>