X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/881b4a69e47004c59f35979620b65fd3d4aaaf16..77ac3d52d89913a79cca834d882c54a58c15a488:/keyboard.plp
diff --git a/keyboard.plp b/keyboard.plp
index 3628ac3..f1d5634 100644
--- a/keyboard.plp
+++ b/keyboard.plp
@@ -1,43 +1,18 @@
<(common.inc.plp)><:
- our $VERSION = 'v1.0';
- use Shiar_Sheet::KeySigns qw(%sign);
-
-:>
-
+Html({
+ title => 'keyboard cheat sheet',
+ version => '1.0',
+ stylesheet => [qw( light dark circus mono red )],
+ keys => 1,
+});
-
-
-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'],
@@ -50,48 +25,22 @@ my $usint = [
my $keys = Shiar_Sheet::Keyboard->new({
def => {
'' => {
- map { $_ => [''] } @{ $usint->[0] }
+ map { $_ => '' } @{ $usint->[0] }
},
},
key => {
map {
- my $i = ord($_) - ord('a');
- $_ => ["$usint->[1]->[$i]
$usint->[2]->[$i]"]
- } 'a'..'z'
+ $usint->[0]->[$_] => "$usint->[1]->[$_]
$usint->[2]->[$_]"
+ } 0 .. $#{ $usint->[0] }
},
});
$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} :>
@@ -104,14 +53,3 @@ $keys->print_rows($get{rows}, [0]);
-
-
-