(common.inc.plp)><:
our $VERSION = 'v1.0';
use Shiar_Sheet::KeySigns qw(%sign);
:>
keyboard cheat sheet
<:= stylesheet(qw'light dark circus mono red terse') :>
<:
our $showkeys = exists $get{keys} && $get{keys} ne '0';
print "\n".''
unless $showkeys;
print "\n".''
if $showkeys and $get{keys} eq 'ghost';
:>
keyboard cheat sheet
normal mode (default)
-
<:
our %sign;
use Shiar_Sheet::Keyboard 2;
my $usint = [
[ 'a' .. 'z'],
[qw(Á B ¢ Ð É F G H Í J Œ Ø µ Ñ Ó Ö Ä ® § Þ Ú V Å X Ü Æ)],
[qw(á b © ð é f g h í j œ ø µ ñ ó ö ä ® ß þ ú v å x ü æ)],
[qw(Å ı Ç ð ´ ̉ ˝ ̣ ˆ ½ Þ ¾ ˜ Ø ∏ Œ ‰ / ˇ ¨ ◊ „ ˛ ¼ ¸)],
[qw(å ∫ ç ∂ ´ ƒ © ˙ ^ ∆ ° ¬ µ ~ ø π œ ® ß † ¨ √ ∑ ≈ ¥ Ω)],
];
my $keys = Shiar_Sheet::Keyboard->new({
def => {
'' => {
map { $_ => [''] } @{ $usint->[0] }
},
},
key => {
map {
my $i = ord($_) - ord('a');
$_ => ["$usint->[1]->[$i]
$usint->[2]->[$i]"]
} 'a'..'z'
},
});
$keys->map($get{map}) or undef $get{map};
$keys->print_rows($get{rows}, [0]);
:>
- info
- Info command: shows/does something without altering anything.
- motion
- positioning
- Other movement (jumps, window (re)positioning).
- command
- Direct action command.
- ins mode
- Enters Insert or Replace mode.
- mode
- Enters a different mode.
- vis mode
- Enters Visual or Select mode.
- key cmd
- Additional key commands (click for overview).
- keyboard map is
<:= $get{map} ? 'set to ' : '' :><:= $keys->{map} :>
- ascii mode is
<:= defined $sign{-ascii} && 'forced ' :><:=
$sign{-ascii} ? 'on' : 'off' :>
- keys are
<:= $showkeys ? 'always shown' : 'hidden if unassigned' :><:=
!exists $get{keys} && ' by default' :>
- default style is
<:= defined $get{style} && 'set to ' :><:= $style :>