about summary refs log blame commit diff stats
path: root/lynx_help/keystrokes/alt_edit_help.html
blob: 63f1044f663cecb90c36341b0dbe516098225c2c (plain) (tree)
1
2
3
4
5
6
                                                                         
                                                  


                                 
                                                







                                                         

                                                                                                                              
       
      



                                               
                                                                      





                                                        
 






                                                                   

                                                                
 

                                                                 
 

                                                                   

                                                         
 












                                                                             


                                                              






                                           
                                                                                                                   
 
                       
                                                                                                             



                                            
      

                                                             
 






                                                                                                               





                                                               

                                                           


                                                    

                                                       

         
                                                                    




                                                                
                                               
 
      


                                                                   
 

                                                                  
 

                                                                 


                                                         

       
<!-- $LynxId: alt_edit_help.html,v 1.21 2021/07/01 21:02:38 tom Exp $ -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
  <meta name="generator" content=
  "HTML Tidy for HTML5 for Linux version 5.6.0">
  <title>Lynx Line Editor Alternative Key Binding</title>
  <link rev="made" href="mailto:lynx-dev@nongnu.org">
  <link rel="Sibling" title="Default Binding" href=
  "edit_help.html">
  <link rel="Sibling" title="Bash-Like Binding" href=
  "bashlike_edit_help.html">
  <meta http-equiv="Content-Type" content=
  "text/html; charset=us-ascii">
  <meta name="description" content=
  "Describes an alternative set of line editor bindings for Lynx. This is one of the alternate bindings normally compiled-in">
</head>
<body>
  <div class="nav">
    <ul>
      <li><a href="#overview">Overview</a></li>

      <li><a href="#alternate_bindings">Table of key-bindings</a></li>

      <li><a href="#notes">Notes</a></li>
    </ul>
  </div>

  <h2><a name="overview" id="overview">Overview</a></h2>

  <p><strong>Lynx</strong> invokes a built-in <a href=
  "edit_help.html">Line Editor</a> for entering strings in response
  to prompts, in forms, and for email messages if an external
  editor has not been defined. Additional alternative key-bindings
  can be offered by configuring with
  <code>--enable-alt-bindings</code> or by adding them in
  LYEditmap.c before compiling <strong>Lynx</strong>. If available,
  they may be selected via the &ldquo;o&rdquo;ptions menu, or by
  editing lineedit_mode in the &ldquo;.lynxrc&rdquo; file.</p>

  <p><strong><em>Note:</em></strong> setting emacs/vi keys ON has
  no direct effect on line-editor bindings.</p>

  <h2><a name="alternate_bindings" id="alternate_bindings">Table of
  key-bindings</a></h2>

  <p>This is the <em>Alternative Binding</em> keymap.</p>

  <pre>
     ENTER  Input complete        -  RETURN
     TAB    Input complete        -  TAB, Do
     ABORT  Input cancelled       -  Ctrl-G, Ctrl-O, (Ctrl-C on some systems)
     ERASE  Erase the line        -  Ctrl-U

     BACK   Cursor back     char  -  Left-Arrow,  Ctrl-B
     FORW   Cursor forward  char  -  Right-Arrow, Ctrl-F
     BACKW  Cursor back     word  -  Ctrl-P
     FORWW  Cursor forward  word  -  Ctrl-N
     BOL    Go to begin of  line  -  Ctrl-A, Home, Find
     EOL    Go to end   of  line  -  Ctrl-E, End,  Select

     DELP   Delete prev     char  -  Backspace, Delete, Remove
     DELN   Delete next     char  -  Ctrl-D (<em><a href=
"#note_1">see note 1</a></em>)
     DELPW  Delete prev     word  -  Ctrl-R
     DELNW  Delete next     word  -  Ctrl-T
     DELEL  Delete to end of line -  Ctrl-K

     UPPER  Upper case the line   -  Ctrl-^
     LOWER  Lower case the line   -  Ctrl-_

     LKCMD  Invoke cmd prompt     -  Ctrl-V (in form text fields, only) (<em><a href="#note_2">see note 2</a></em>)

<a name="TASpecial" id=
"TASpecial">Special commands for use only in textarea fields</a> (<em><a href="#note_3">see note 3</a></em>):

          Textarea external edit  - Ctrl-X e
          Insert file in textarea - Ctrl-X i
          Grow textarea           - Ctrl-X g
</pre>
  <h2><a name="emacs_bindings" id="emacs_bindings">Emacs-like
  commands</a></h2>

  <pre>
    TPOS    Transpose characters                   -  Ctrl-t
    SETMARK Set mark at current position in line   -  Ctrl-@
    XPMARK  Exchange current position with mark    -  Ctrl-x Ctrl-x
    KILLREG Kill region between mark and position  -  Ctrl-x Ctrl-w (<em><a href="#note_3">see note 3</a></em>)
    YANK    Insert text last killed (with KILLREG) -  Ctrl-y
</pre>
  <h2><a name="examples" id="examples">Try it yourself</a></h2>

  <p>Here is a little textarea for practice:</p>

  <form action="">
    <p>
    <textarea name="practice" cols="40" rows=
    "5">This text cannot be submitted.  Normally lines like
these would be part of a form that is filled out and
then submitted.  You can move around here and delete
or add text as you like, using the Line-Editor keys.
</textarea><input type="reset" value="[reset content]">
    </p>
  </form>

  <h2><a name="special_keys" id="special_keys">Special keys</a></h2>

  <p>See the <em><a href="edit_help.html#special_keys">Lynx Line
  Editor</a></em> page for an explanation of terminology and
  key-names.</p>

  <h2><a name="notes" id="notes">Notes</a></h2>

  <ol>
    <li id="note_1">"next" means the character "under" a box or
    underline style cursor; it means "to the immediate right of" an
    I-beam (between characters) type cursor.</li>

    <li id="note_2">Follow Ctrl-V with any recognized key command,
    to "escape" from a text input field.</li>

    <li id="note_3">For other key combinations using Ctrl-X as a
    prefix key, see the Help page for the <a rel="Sibling" title=
    "Bash-Like Binding" href=
    "bashlike_edit_help.html">Bash-Like</a> Binding.</li>
  </ol>
</body>
</html>