From: Mischa POSLAWSKY Date: Mon, 9 Apr 2012 15:55:37 +0000 (+0200) Subject: keys: common generation of flags legend from includes X-Git-Tag: v1.5~8 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/eeaaa3c862485faf9f26c5646b2c9e94d03657ab keys: common generation of flags legend from includes --- diff --git a/less.eng.inc.pl b/less.eng.inc.pl index c0afb11..99c0545 100644 --- a/less.eng.inc.pl +++ b/less.eng.inc.pl @@ -110,4 +110,16 @@ mode => { ':' => 'colon commands', }, +flag => { + ci => [info => 'Temporary message display (or related option).'], + pm => [move => 'Regular file position panning (or option).'], + po => [jump => 'Other file position manipulation (").'], + co => [search => 'Go to matching content (").'], + mo => [file => 'Alter open file buffer (").'], + mv => [misc => 'Other commands and options.'], + + arg => ["key$sign{arg}" => "Commands with a dot need a char argument afterwards."], + more => [more => "A small subset is compatible with `more`."], +}, + } diff --git a/less.plp b/less.plp index 1b42723..f701ca8 100644 --- a/less.plp +++ b/less.plp @@ -34,29 +34,11 @@ $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. -
+<: $keys->print_legend('legend-types', [qw( ci pm po co mo mv )]) :>
-
-
key<:= $sign{arg} :> -
Commands with a dot need a char argument afterwards. -
more -
A small subset is compatible with `more`. -
+<: $keys->print_legend('legend-options', [qw( arg more )]) :>
  • keyboard map is diff --git a/mplayer.eng.inc.pl b/mplayer.eng.inc.pl index c6de943..7431994 100644 --- a/mplayer.eng.inc.pl +++ b/mplayer.eng.inc.pl @@ -55,4 +55,16 @@ mode => { '' => "interactive control", }, +flag => { + ci => [osd => "Print information or change display."], + pm => [subtitles => "Alter subtitle selection and settings."], + co => [video => "Video output adjustment."], + mi => [audio => "Sound (track) configuration."], + mo => [playback => "Playback control."], + me => [general => "Other MPlayer features."], + + arg => ["key$sign{arg}" => "Commands with a dot need an argument afterwards."], + ext => ["optional" => "Some features depend on setup and/or parameters."], +}, + } diff --git a/mplayer.plp b/mplayer.plp index 200b355..5b53ded 100644 --- a/mplayer.plp +++ b/mplayer.plp @@ -33,29 +33,11 @@ $keys->print_rows($get{rows}, [1,0]);
    -
    -
    osd -
    Print information or change display. -
    subtitles -
    Alter subtitle selection and settings. -
    video -
    Video output adjustment. -
    audio -
    Sound (track) configuration. -
    playback -
    Playback control. -
    general -
    Other MPlayer features. -
    +<: $keys->print_legend('legend-types', [qw( ci pm co mi mo me )]) :>
    -
    -
    key<:= $sign{arg} :> -
    Commands with a dot need an argument afterwards. -
    optional -
    Some features depend on setup and/or parameters. -
    +<: $keys->print_legend('legend-options', [qw( arg ext )]) :>
    • keyboard map is diff --git a/mutt.eng.inc.pl b/mutt.eng.inc.pl index 44f0392..f12dce6 100644 --- a/mutt.eng.inc.pl +++ b/mutt.eng.inc.pl @@ -203,4 +203,17 @@ mode => { '/~' => 'search flags (/~)', }, +flag => { + ci => [aside => "Temporarily display something without changing state."], + pm => [select => "Scroll list and/or select a different line."], + po => [search => "Go to a specific message entry."], + co => [edit => "Modify message flags or contents."], + mi => [command => "Any other action which does not alter an existing message."], + mo => [send => "Prepare and/or send a (new) message."], + mv => [leave => "Exit the opened folder."], + me => [display => "Permanently alter/toggle current view."], + + arg => ["key$sign{arg}" => "Commands with a dot need an argument afterwards."], +}, + } diff --git a/mutt.plp b/mutt.plp index 4095965..62c2fc1 100644 --- a/mutt.plp +++ b/mutt.plp @@ -33,31 +33,11 @@ $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 diff --git a/nethack.eng.inc.pl b/nethack.eng.inc.pl index be69164..e4ef3b3 100644 --- a/nethack.eng.inc.pl +++ b/nethack.eng.inc.pl @@ -139,4 +139,17 @@ mode => { '' => 'normal gameplay', }, +flag => { + pm => [direction => "Direction to move to or target a command ($sign{motion})."], + po => [move => "Other character movement."], + co => [act => "Direct action command: takes a turn."], + mi => [info => "Informational command: shows/does something without ending the turn."], + mo => [invertory => "Display invertory menu."], + mv => [menu => "Enters some other menu."], + + arg => ["key$sign{arg}" => "Commands with a dot need at least one argument afterwards."], + argi => ["key$sign{argi}" => "Asks for an inventory item."], + argm => ["key$sign{argm}" => "Requires a direction afterwards."], +}, + } diff --git a/nethack.plp b/nethack.plp index b00fb9c..add0370 100644 --- a/nethack.plp +++ b/nethack.plp @@ -35,31 +35,11 @@ $keys->print_rows($get{rows} || '4321-421', [3,2,1,0]);
        -
        -
        direction -
        Direction to move to or target a command (<:= $sign{motion} :>). -
        move -
        Other character movement. -
        act -
        Direct action command: takes a turn. -
        info -
        Informational command: shows/does something without ending the turn. -
        invertory -
        Display invertory menu. -
        menu -
        Enters some other menu. -
        +<: $keys->print_legend('legend-types', [qw( pm po co mi mo mv )]) :>
        -
        -
        key<:= $sign{arg} :> -
        Commands with a dot need at least one argument afterwards. -
        key<:= $sign{argi} :> -
        Asks for an inventory item. -
        key<:= $sign{argm} :> -
        Requires a direction afterwards. -
        +<: $keys->print_legend('legend-options', [qw( arg argi argm )]) :>
        • keyboard map is diff --git a/readline.eng.inc.pl b/readline.eng.inc.pl index da03370..c7bcd25 100644 --- a/readline.eng.inc.pl +++ b/readline.eng.inc.pl @@ -80,4 +80,18 @@ mode => { '^x' => 'emacs ctrl-x bindings', }, +flag => { + ci => [info => "Info command: shows/does something without altering anything."], + pm => [motion => "Move the cursor."], + co => [history => "Replace contents involving kill ring, undo, or command history."], + mi => [change => "Alter current text (filtering or completion)."], + mo => [delete => "Remove text."], + mv => [misc => "Miscellaneous commands."], + me => [mode => "Additional key functionality (click to view)."], + + arg => ["key$sign{arg}" => "Commands with a dot need a char argument afterwards."], + new => [">v2.0" => "Unavailable before readline version 2.1 (1997)."], + ext => ["bash" => "Default assignment in Bash shells, but not common readline."], +}, + } diff --git a/readline.plp b/readline.plp index c0eb58a..9c7c027 100644 --- a/readline.plp +++ b/readline.plp @@ -33,33 +33,11 @@ $keys->print_rows($get{rows} || '^x=213', [4,3,2]);
          -
          -
          info -
          Info command: shows/does something without altering anything. -
          motion -
          Move the cursor. -
          history -
          Replace contents involving kill ring, undo, or command history. -
          change -
          Alter current text (filtering or completion). -
          delete -
          Remove text. -
          misc -
          Miscellaneous commands. -
          mode -
          Additional key functionality (click to view). -
          +<: $keys->print_legend('legend-types', [qw( ci pm co mi mo mv me )]) :>
          -
          -
          key<:= $sign{arg} :> -
          Commands with a dot need a char argument afterwards. -
          >v2.0 -
          Unavailable before readline version 2.1 (1997). -
          bash -
          Default assignment in Bash shells, but not common readline. -
          +<: $keys->print_legend('legend-options', [qw( arg new ext )]) :>
          • keyboard map is diff --git a/vimperator.eng.inc.pl b/vimperator.eng.inc.pl index 70fde80..1b23b4d 100644 --- a/vimperator.eng.inc.pl +++ b/vimperator.eng.inc.pl @@ -136,4 +136,19 @@ mode => { 'Z' => 'quit commands (Z)', }, +flag => { + ci => ['info' => "Displays something without any permanent consequences."], + pm => ['motion' => "Move cursor, scroll window, focus buffer element."], + po => ['tab' => "Tab or window navigation/selection."], + co => ['buffer' => "Page interaction."], + cp => ['open' => "Browse to a location in the current tab."], + mi => ['tab open' => "Browse somewhere in a new tab."], + mo => ['browser' => "Other browser action."], + mv => ['mode' => "Enter a different mode."], + me => ['key cmd' => "Additional key commands (click for overview)."], + + arg => ["key$sign{arg}" => "Commands with a dot need a char argument afterwards."], + args => ["key$sign{args}" => "Commands with two dots require variable arguments afterwards."], +}, + } diff --git a/vimperator.plp b/vimperator.plp index d939c9a..3493d84 100644 --- a/vimperator.plp +++ b/vimperator.plp @@ -36,35 +36,11 @@ $keys->print_rows($get{rows});
            -
            -
            info -
            Displays something without any permanent consequences. -
            motion -
            Move cursor, scroll window, focus buffer element. -
            tab -
            Tab or window navigation/selection. -
            buffer -
            Page interaction. -
            open -
            Browse to a location in the current tab. -
            tab open -
            Browse somewhere in a new tab. -
            browser -
            Other browser action. -
            mode -
            Enter a different mode. -
            key cmd -
            Additional key commands (click for overview). -
            +<: $keys->print_legend('legend-types', [qw( ci pm po co cp mi mo mv me )]) :>
            -
            -
            key<:= $sign{arg} :> -
            Commands with a dot need a char argument afterwards. -
            key<:= $sign{args} :> -
            Commands with two dots require variable arguments afterwards. -
            +<: $keys->print_legend('legend-options', [qw( arg args )]) :>
            • keyboard map is