home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / new / util / edit / jade / man / jade.info-2 (.txt) < prev    next >
GNU Info File  |  1994-10-16  |  50KB  |  1,039 lines

  1. This is Info file jade.info, produced by Makeinfo-1.55 from the input
  2. file jade.texi.
  3. START-INFO-DIR-ENTRY
  4. * Jade: (jade).            An editor for X11 and AmigaDOS
  5. END-INFO-DIR-ENTRY
  6.    This is Edition 1.3, last updated 7 October 1994, of `The Jade
  7. Manual', for Jade, Version 3.2.
  8.    Jade is a text editor for X11 (on Unix) and the Amiga.
  9.    Copyright 1993, 1994 John Harper.
  10.    Permission is granted to make and distribute verbatim copies of this
  11. manual provided the copyright notice and this permission notice are
  12. preserved on all copies.
  13.    Permission is granted to copy and distribute modified versions of
  14. this manual under the conditions for verbatim copying, provided that
  15. the entire resulting derived work is distributed under the terms of a
  16. permission notice identical to this one.
  17. File: jade.info,  Node: Editing Words,  Next: Editing Expressions,  Prev: Editing Characters,  Up: Editing Units
  18. Editing Words
  19. -------------
  20.    The following commands operate on words. When given a prefix argument
  21. they operate on that number of words all in one go.
  22.    The syntax of a word depends largely on the major mode being used to
  23. edit the buffer with, see *Note Editing Modes::.
  24. `Meta-f'
  25. `Meta-Right'
  26.      Move forward one word.
  27. `Meta-b'
  28. `Meta-Left'
  29.      Move back one word.
  30. `Meta-d'
  31. `Meta-DEL'
  32.      Kills characters from the cursor to the start of the next word.
  33.      *Note Killing::.
  34. `Meta-Backspace'
  35.      Kills characters from the start of the previous word to the cursor
  36.      position.
  37. `Meta-t'
  38.      Transpose words: the word before the cursor is dragged over the
  39.      following word. An argument means to drag the word over that
  40.      number of words.
  41. `Meta-u'
  42.      Convert the characters from the cursor to the start of the next
  43.      word to upper-case.
  44. `Meta-l'
  45.      Similar to `Meta-u' but converts to lower-case.
  46. `Meta-c'
  47.      Capitalise the word beginning at the cursor position. What happens
  48.      is that the next alphabetic character is converted to upper-case
  49.      then the rest of the word is converted to lower-case. Note that an
  50.      argument to this command currently has no effect.
  51. File: jade.info,  Node: Editing Expressions,  Next: Editing Lines,  Prev: Editing Words,  Up: Editing Units
  52. Editing Expressions
  53. -------------------
  54.    Expressions are used when editing programming languages; the editing
  55. mode for a particular programming language defines the syntax of an
  56. expression element in that language. In other editing modes an
  57. expression is defined as a single word.
  58.    These commands use prefix arguments in the normal manner.
  59. `Ctrl-Meta-f'
  60.      Move forward over one expression element.
  61. `Ctrl-Meta-b'
  62.      Move backwards over one expression.
  63. `Ctrl-Meta-k'
  64.      Kills the following expression, starting from the current cursor
  65.      position.  A negative argument means kill backwards. *Note
  66.      Killing::.
  67. `Ctrl-Meta-t'
  68.      Transpose the previous expression with the following one. An
  69.      argument means to drag the previous one over that many expressions.
  70. File: jade.info,  Node: Editing Lines,  Prev: Editing Expressions,  Up: Editing Units
  71. Editing Lines
  72. -------------
  73.    These commands all operate on one or more lines of text. Most use a
  74. prefix argument (if entered) to define how many lines to move or operate
  75. `Ctrl-n'
  76. `Down'
  77.      Move down one line.
  78. `Ctrl-p'
  79.      Move to the previous line.
  80. `Ctrl-a'
  81. `Shift-Left'
  82.      Move to the beginning of the current line.
  83. `Ctrl-e'
  84. `Shift-Right'
  85.      Move to the end of the current line.
  86. `Meta-j'
  87.      Prompts for the number of a line to jump to. If a prefix argument
  88.      was entered that defines the line number.
  89. `Ctrl-DEL'
  90.      Kill the current line. *Note Killing::.
  91. `Shift-DEL'
  92.      Kill from the cursor to the end of the current line.
  93. `Shift-Backspace'
  94.      Kill from the cursor to the beginning of the line.
  95. `Ctrl-k'
  96.      If the cursor is not at the end of the line kill the text from the
  97.      cursor to the end of the line, else kill from the end of the line
  98.      to the start of the next line.
  99.      If this command is given an argument it kills that number of
  100.      *whole* lines, either backwards or forwards from the cursor,
  101.      depending on whether or not the argument is negative or positive.
  102.      An argument of zero kills from the cursor to the start of the
  103.      current line.
  104. `Ctrl-o'
  105.      Create a blank new line, leaving the cursor in its original
  106.      position. A prefix argument says to create that many blank lines.
  107. File: jade.info,  Node: Cutting And Pasting,  Next: Using Blocks,  Prev: Editing Units,  Up: Using Jade
  108. Cutting And Pasting
  109. ===================
  110.    One of the main functions of any editor is to allow you to move
  111. around chunks of text, Jade makes this very easy.
  112.    Generally, to paste down some text you have to get the text to be
  113. inserted into the window-system's clipboard (1). If the text you wish
  114. to paste is in one of the editor's buffers Jade has a number of
  115. commands for doing this, this is sometimes referred to as "killing" the
  116. text. For details of how to kill a piece of text see *Note Killing::.
  117.    If the text to be pasted is in the same buffer as the position to
  118. which you want to copy it there is an easier way than putting it into
  119. the clipboard. For more details see *Note Commands on Blocks:: and the
  120. command `Ctrl-i'.
  121.    Once the text to be pasted is in the clipboard there are two
  122. commands which can be used to insert it into the buffer before the
  123. cursor,
  124. `Ctrl-y'
  125.      Inserts text into the buffer before the cursor. The text inserted
  126.      is either the current contents of the kill buffer, or the block
  127.      marked in this window, if one exists.
  128. `Ctrl-Y'
  129.      This is a variant of `Ctrl-y', it treats the string that it is
  130.      pasting as a "rectangle" of text. That is, each successive line in
  131.      the string (each separated by a newline character) is inserted on
  132.      successive lines in the buffer but at the same column position.
  133.      For more details see *Note Rectangular Blocks:: and the function
  134.      `insert-rect'.
  135.    ---------- Footnotes ----------
  136.    (1)  When using an Amiga, unit zero of the `clipboard.device' is
  137. used. For X11, the first cut-buffer.
  138. File: jade.info,  Node: Using Blocks,  Next: Killing,  Prev: Cutting And Pasting,  Up: Using Jade
  139. Using Blocks
  140. ============
  141.    A "block" is a section of a buffer, you mark it by specifying its
  142. edges (i.e. the first and last characters). This part of the buffer can
  143. then have various things done to it, for example insert it somewhere
  144. else.
  145.    Each window can only have a single block marked at any one time, it
  146. will be displayed in the reverse of normal text (i.e. white on black,
  147. not black on white).
  148. * Menu:
  149. * Marking Blocks::              Commands to define the current block
  150. * Commands on Blocks::          How to work with blocks
  151. * Rectangular Blocks::          Columns of text as blocks
  152. File: jade.info,  Node: Marking Blocks,  Next: Commands on Blocks,  Up: Using Blocks
  153. Marking Blocks
  154. --------------
  155.    To mark a block you must specify its outermost points, note that the
  156. text marked by the block ends one character before the marked position
  157. (this is so that it easy to mark whole lines).
  158.    Rectangular blocks are a bit different for more information, see
  159. *Note Rectangular Blocks::.
  160.    Note also that block marks shrink and grow as text is deleted and
  161. inserted inside them, similar to what normal marks do.
  162.    These are the commands used to mark a block,
  163. `Ctrl-m'
  164. `Ctrl-SPC'
  165.      If a block is currently marked in this window it will unmark it.
  166.      Otherwise it will either mark the beginning or end of the block
  167.      depending on whether or not a block has previously been partially
  168.      marked.
  169.      The normal method for marking a few characters is to first make
  170.      sure that no block is currently marked (the status line displays
  171.      the status of the block marks, a `b' means that one end of a block
  172.      has been marked and a `B' means that both ends of a block are
  173.      marked in which case it will be highlighted somewhere in the
  174.      buffer) then press `Ctrl-m' at one end, move the cursor to the
  175.      opposite end and press `Ctrl-m' again.
  176. `Ctrl-x h'
  177.      Mark the whole of the buffer.
  178. `Meta-@'
  179.      Mark the current word.
  180. `Meta-h'
  181.      Mark the current paragraph.
  182.    Another method fo