home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 036 / less232.zip / LESSKEY.MAN < prev    next >
Text File  |  1994-09-13  |  6KB  |  199 lines

  1.  
  2.  
  3.  
  4. LESSKEY(1)               USER COMMANDS                 LESSKEY(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      lesskey - specify key bindings for less
  10.  
  11. SYNOPSIS
  12.      lesskey [-o output] [input]
  13.  
  14. DESCRIPTION
  15.      _L_e_s_s_k_e_y is used to specify a set of key bindings to be  used
  16.      by  _l_e_s_s.  The input file is a text file which describes the
  17.      key bindings, and the output file is a binary file which  is
  18.      used  by _l_e_s_s. If no input file is specified, standard input
  19.      is used.  If no output file  is  specified,  $HOME/.less  is
  20.      used.
  21.  
  22.      The input file consists of lines of the form:
  23.  
  24.           string <whitespace> action [extra-string] <newline>
  25.  
  26.      Whitespace is any sequence of  one  or  more  spaces  and/or
  27.      tabs.   The  "string" is the command key(s) which invoke the
  28.      action.  The string may  be  a  single  command  key,  or  a
  29.      sequence  of up to 15 keys.  The "action" is the name of the
  30.      less action, from the list below.   The  characters  in  the
  31.      "string"  may appear literally, or be prefixed by a carat to
  32.      indicate a control key.  A  backslash  followed  by  one  to
  33.      three octal digits may be used to specify a character by its
  34.      octal value.  A backslash followed by b, e, n, r or t speci-
  35.      fies  BACKSPACE,  ESCAPE,  NEWLINE,  RETURN  or TAB, respec-
  36.      tively.  A backslash followed by any other  character  indi-
  37.      cates  that  character is to be taken literally.  Characters
  38.      which must be preceded by backslash  include  carat,  space,
  39.      tab  and  the backslash itself.  Blank lines and lines which
  40.      start with a pound sign (#) are ignored.
  41.  
  42.      An action may be followed by an extra string.   This  string
  43.      is  parsed  after the command is entered, just as if it were
  44.      entered on the command line.  This feature can  be  used  in
  45.      certain cases to extend the functionality of a command.  For
  46.      example, these entries would create a pair  of  commands  to
  47.      turn on/off line numbers using _v_i syntax:
  48.  
  49.           :set\ nu       toggle-option -N
  50.           :set\ nonu     toggle-option +N
  51.  
  52.      See also the ":ta" command in the example below.
  53.  
  54.  
  55. EXAMPLE
  56.      The following input file describes the set of  default  com-
  57.      mand keys used by less:
  58.  
  59.           \r        forw-line
  60.  
  61.  
  62.  
  63.                                                                 1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. LESSKEY(1)               USER COMMANDS                 LESSKEY(1)
  71.  
  72.  
  73.  
  74.           \n        forw-line
  75.           e         forw-line
  76.           j         forw-line
  77.           ^E        forw-line
  78.           ^N        forw-line
  79.           k         back-line
  80.           y         back-line
  81.           ^Y        back-line
  82.           ^K        back-line
  83.           ^P        back-line
  84.           J         forw-line-force
  85.           K         back-line-force
  86.           Y         back-line-force
  87.           d         forw-scroll
  88.           ^D        forw-scroll
  89.           u         back-scroll
  90.           ^U        back-scroll
  91.           '         back-scroll
  92.           \40       forw-screen
  93.           f         forw-screen
  94.           ^F        forw-screen
  95.           ^V        forw-screen
  96.           b         back-screen
  97.           ^B        back-screen
  98.           \ev       back-screen
  99.           z         forw-window
  100.           w         back-window
  101.           F         forw-forever
  102.           R         repaint-flush
  103.           r         repaint
  104.           ^R        repaint
  105.           ^L        repaint
  106.           g         goto-line
  107.           <         goto-line
  108.           \e<       goto-line
  109.           p         percent
  110.           %         percent
  111.           {         forw-bracket {}
  112.           }         back-bracket {}
  113.           (         forw-bracket ()
  114.           )         back-bracket ()
  115.           [         forw-bracket []
  116.           ]         back-bracket []
  117.           \e^F forw-bracket
  118.           \e^B back-bracket
  119.           G         goto-end
  120.           \e>       goto-end
  121.           >         goto-end
  122.           P         goto-end
  123.           =         status
  124.           ^G        status
  125.           :f        status
  126.  
  127.  
  128.  
  129.                                                                 2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. LESSKEY(1)               USER COMMANDS                 LESSKEY(1)
  137.  
  138.  
  139.  
  140.           /         forw-search
  141.           ?         back-search
  142.           \e/       forw-search *
  143.           \e?       back-search *
  144.           n         repeat-search
  145.           \en       repeat-search-all
  146.           N         reverse-search
  147.           \eN       reverse-search-all
  148.           \u        undo-hilite
  149.           m         set-mark
  150.           '         goto-mark
  151.           ^X^X      goto-mark
  152.           E         examine
  153.           :e        examine
  154.           ^X^V      examine
  155.           :n        next-file
  156.           :p        prev-file
  157.           :x        index-file
  158.           -         toggle-option
  159.           :t        toggle-option t
  160.           s         toggle-option o
  161.           _         display-option
  162.           |         pipe
  163.           v         visual
  164.           !         shell
  165.           +         firstcmd
  166.           H         help
  167.           h         help
  168.           V         version
  169.           q         quit
  170.           :q        quit
  171.           :Q        quit
  172.           ZZ        quit
  173.  
  174.      Commands specified  by  _l_e_s_s_k_e_y  take  precedence  over  the
  175.      default  commands.  A default command key may be disabled by
  176.      including it in the key file with the action "invalid".
  177.  
  178.  
  179. SEE ALSO
  180.      less(1)
  181.  
  182.  
  183. COPYRIGHT
  184.      Copyright (c) 1984,1985,1989,1994  Mark Nudelman
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                 3
  196.  
  197.  
  198.  
  199.