X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/28151a28db84c6d6018232f36c0003ecd562b3f0..19b5c65d6d32527bdd0edfe5a2c4f4fe0da7dc87:/mutt.plp?ds=inline
diff --git a/mutt.plp b/mutt.plp
index cd90e86..c489f16 100644
--- a/mutt.plp
+++ b/mutt.plp
@@ -1,87 +1,46 @@
<(common.inc.plp)><:
- use Shiar_Sheet::KeySigns qw(%sign);
- our $VERSION = 'v1.0';
+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
+ '],
+ stylesheet => [qw'light dark circus mono red terse'],
+ keys => 1,
+});
- $header{content_type} = "text/html; charset=$sign{charset}";
-
-:>
-
-
-
-
-mutt 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';
:>
-
-
-
-
Mutt cheat sheet
index (default)
-
-
--
-
-
-
<:
-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});
:>
-
-
- - aside
-
- Temporarily display something without changing state.
-
- select
-
- Scroll list and/or select a different line.
-
- search
-
- Go to a specific message entry.
-
- edit
-
- Modify message flags or contents.
-
- command
-
- Any other action which does not alter an existing message.
-
- send
-
- Prepare and/or send a (new) message.
-
- leave
-
- Exit the opened folder.
-
- display
-
- Permanently alter/toggle current view.
-
+<: $keys->print_legend('legend-types', [qw( ci pm po co mi mo mv me )]) :>
-
- - key<:= $sign{arg} :>
-
- Commands with a dot need an argument afterwards.
-
+<: $keys->print_legend('legend-options', [qw( arg )]) :>
- 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' :>
@@ -91,14 +50,3 @@ $keys->print_rows($get{rows});
-
-
-