X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/3aab2658e078a4f424343fb10817f8d0eab9343b..7ed94883ec44ad8b4c7e19e9c37546beb69a3b4c:/mutt.plp
diff --git a/mutt.plp b/mutt.plp
index 7ecf7fc..f3909fe 100644
--- a/mutt.plp
+++ b/mutt.plp
@@ -1,41 +1,21 @@
-<:
-use utf8;
-use strict;
-use warnings;
-no warnings 'qw'; # you know what you doing
-no warnings 'uninitialized'; # save some useless checks for more legible code
-
-use Shiar_Sheet::KeySigns qw(%sign);
-
-our $VERSION = 'v1.0';
-
-$header{content_type} = "text/html; charset=$sign{charset}";
-
-:>
-
+<(common.inc.plp)><:
+
+Html({
+ title => 'mutt cheat sheet',
+ version => 'v1.1',
+ description => [
+ "Cheat sheet for the Mutt e-mail client,",
+ "showing the default binding for each key.",
+ ],
+ keywords => [qw'
+ mutt MUA email client sheet cheat reference overview commands keyboard
+ '],
+ charset => $sign{charset},
+ stylesheet => [qw'light dark circus mono red terse'],
+ keys => 1,
+});
-
-mutt cheat sheet
-
-
-
-<:
- my %styles = map {$_ => $_} qw(dark circus mono red terse);
- our $style = exists $get{style} && $styles{$get{style}} || 'light';
- printf(qq{\n},
- $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "$_.css", $_
- ) for keys %styles;
-
- our $showkeys = exists $get{keys} && $get{keys} ne '0';
- print "\n".'' unless $showkeys;
- print "\n".''
- if $showkeys and $get{keys} eq 'ghost';
:>
-
-
-
-
Mutt cheat sheet
index (default)
@@ -50,8 +30,10 @@ $header{content_type} = "text/html; charset=$sign{charset}";
<:
-use Shiar_Sheet::Keyboard;
-my $keys = Shiar_Sheet::Keyboard->new({do 'mutt.inc.pl'});
+use Shiar_Sheet::Keyboard 2;
+my $info = do 'mutt.eng.inc.pl' or die $@;
+$info->{def} = do 'mutt.inc.pl';
+my $keys = Shiar_Sheet::Keyboard->new($info);
$keys->map($get{map}) or undef $get{map};
$keys->print_rows($get{rows});
:>
@@ -64,10 +46,10 @@ $keys->print_rows($get{rows});
- aside
- Temporarily display something without changing state.
-
- move
-
- Scroll window, only selecting a different message when necessary.
-
- select
-
- Select another message entry.
+
- select
+
- Scroll list and/or select a different line.
+
- search
+
- Go to a specific message entry.
- edit
- Modify message flags or contents.
- command
@@ -102,12 +84,3 @@ $keys->print_rows($get{rows});
-
-
-