keyboard: replace vi classes by numbered key groups
[sheet.git] / less.plp
index b3632038f95be5d110770de4d419b9b6f6ac3e12..f394f67eec6b65b8103b451342f0144d611e5580 100644 (file)
--- a/less.plp
+++ b/less.plp
@@ -11,7 +11,6 @@ Html({
                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,
 });
@@ -21,8 +20,6 @@ Html({
 
 <h2>normal pager (default)</h2>
 
-<ul id="rows">
-
 <:
 use Shiar_Sheet::Keyboard 2;
 my $info = do 'less.eng.inc.pl' or die $@;
@@ -31,42 +28,20 @@ my $keys = Shiar_Sheet::Keyboard->new($info);
 $keys->map($get{map}) or undef $get{map};
 $keys->print_rows($get{rows}, [1,0]);
 :>
-</ul>
 
 <hr>
 
 <div class="help">
        <div class="left">
-               <dl class="legend legend-types">
-               <dt class="ci">info
-                       <dd>Temporary message display (or related option).
-               <dt class="pm">move
-                       <dd>Regular file position panning (or option).
-               <dt class="po">jump
-                       <dd>Other file position manipulation (").
-               <dt class="co">search
-                       <dd>Go to matching content (").
-               <dt class="mo">file
-                       <dd>Alter open file buffer (").
-               <dt class="mv">misc
-                       <dd>Other commands and options.
-               </dl>
+<: $keys->print_legend('legend-types', ['g1' .. 'g4', 'g7', 'g8']) :>
        </div>
 
        <div class="right">
-               <dl class="legend legend-options">
-               <dt>key<:= $sign{arg} :>
-                       <dd>Commands with a dot need a char argument afterwards.
-               <dt class="more">more
-                       <dd>A small subset is compatible with `more`.
-               </dl>
+<: $keys->print_legend('legend-options', [qw( arg more )]) :>
 
                <ul class="legend legend-set">
                <li>keyboard <strong>map</strong> is
                        <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
-               <li><strong>ascii</strong> mode is
-                       <:= defined $sign{-ascii} && 'forced ' :><em><:=
-                               $sign{-ascii} ? 'on' : 'off' :></em>
                <li><strong>keys</strong> are
                        <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
                                !exists $get{keys} && ' by default' :>