X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/bd1e1ef87447f7922a39414b3deb7d1b305fb3d4..587ac438d1321ac08955a251401c06668a3d1ee9:/less.plp
diff --git a/less.plp b/less.plp
new file mode 100644
index 0000000..ce5ca14
--- /dev/null
+++ b/less.plp
@@ -0,0 +1,99 @@
+<(common.inc.plp)><:
+
+Html({
+ title => 'less cheat sheet',
+ version => 'v1.0',
+ description => [
+ "Default bindings of the less pager.",
+ "Clearly shows how much it's more than more.",
+ ],
+ keywords => [qw'
+ less sheet cheat keys pager more
+ shortkey reference keyboard commands options overview
+ '],
+ charset => $sign{charset},
+ stylesheet => [qw'light dark circus mono red terse'],
+ keys => 1,
+});
+
+:>
+
Less cheat sheet
+
+normal pager (default)
+
+
+
+
+ -
+
+ - Esc alt<:=$sign{_}:>/meta
+
+ -
+
+
-
+
+
-
+
+
-
+
+
+
+<:
+use Shiar_Sheet::Keyboard;
+my $keys = Shiar_Sheet::Keyboard->new({do 'less.inc.pl'});
+$keys->map($get{map}) or undef $get{map};
+$keys->print_rows($get{rows}, [1,0]);
+:>
+
+
+
+
+
+
+
+ - info
+
- Temporary message display (or related option).
+
- move
+
- Regular file position panning (or option).
+
- jump
+
- Other file position manipulation (").
+
- search
+
- Go to matching content (").
+
- file
+
- Alter open file buffer (").
+
- misc
+
- Other commands and options.
+
+
+
+
+
+ - key<:= $sign{arg} :>
+
- Commands with a dot need a char argument afterwards.
+
- more
+
- A small subset is compatible with `more`.
+
+
+
+ - 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 :>
+
+
+
+