X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/81aefba6ac586eccbe18b4e90efc175e34fff5ad..18ff65229f85952af3cc3f0646ee55e6a2dcd00a:/keyboard.plp diff --git a/keyboard.plp b/keyboard.plp index ac9df32..c96977d 100644 --- a/keyboard.plp +++ b/keyboard.plp @@ -1,91 +1,37 @@ <(common.inc.plp)><: +my $mode = lc($Request || 'altgr'); +my $include = "$mode.eng"; + +my $info = eval { Data($include) } || {}; +$mode = $info->{title} // $mode; + Html({ - title => 'keyboard cheat sheet', - version => '1.0', - stylesheet => [qw'light dark circus mono red terse'], + title => "\L$mode\E keyboard cheat sheet", + version => $info->{version} || '0.1', + description => $info->{description} // + ["Keyboard cheat sheet for the default controls of $mode."], + keywords => [@{ $info->{keywords} // [] }, qw' + sheet cheat reference overview keyboard control commands shortkey + '], + stylesheet => [qw( light dark circus mono red )], keys => 1, + data => ["$include.inc.pl"], }); -:> -

keyboard cheat sheet

- -

normal mode (default)

- - - -
- -
-
-
-
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). -
-
- -
-
-
- - -
-
+$keys->print_rows($get{rows}, $info->{rows}); +$keys->print_legends(\%get);