home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / editors / origami / oribin.zoo / learn / editing < prev    next >
Encoding:
Text File  |  1991-06-28  |  5.4 KB  |  116 lines

  1. INSERTING AND DELETING
  2. ----------------------
  3.  
  4. If you want to type text, just start typing.  Characters which you can see,
  5. such as A, 7, *, etc. are taken by Origami as text and are immediately
  6. inserted.  Type <Return> to insert a line separator, i.e., a single linefeed
  7. character.  A complete list of bindings can be obtained with C-X ?.
  8.  
  9. >>  Try it now.  Type C-X ?.  You may wonder how many commands are available,
  10.     but most people will start creating their own commands sometimes to get a
  11.     more powerful editing environment!
  12.  
  13. You can delete the last character you typed by typing either <Backspace>
  14. or C-H.  On some keyboards, there is a dedicated key for creating a C-H.
  15. If so, it is usually labelled as either "Backspace" or "<--". <Delete> is
  16. a key on the keyboard, which may be labelled "Rubout" instead of "Delete"
  17. on some terminals.  More generally, <Backspace> deletes the character
  18. immediately before the current cursor position, whereas <Delete> deletes
  19. the character the cursor is under.
  20.  
  21. >>  Now type a few characters and then delete them by typing <Backspace>
  22.     a few times.
  23.  
  24. >>  Now start typing text until you reach the right margin, then continue
  25.     to type.  When a line of text gets too big for one line on the screen, the
  26.     line of text is "continued" off the edge of the screen.  The dollar sign
  27.     at the right margin indicates a line which has been continued.  The line
  28.     will scroll if you move the cursor forwards.  The maximum line length is
  29.     256 characters.
  30.  
  31. This concept is easier to understand by doing rather than by reading about
  32. it so it is suggested that the following exercises be done.
  33.  
  34. >>  The following line actually goes off the edge.  Try typing enough M-F's
  35.     so that you move off the right hand end of this line.  This is a long line of text.  Note the "$" at the right edge.  Keep typing M-F's and watch where
  36.     Origami decides to scroll the line.  Now, type M-B's until Origami decides to scroll the line again.
  37.  
  38. >>  Go to the line you entered which the text continued off the edge of the
  39.     screen.  Use C-D's to delete the text until the text line fits on one
  40.     screen line again.  The continuation "$" will go away.
  41.  
  42. >>  Move the cursor to the beginning of a line and type C-H.  This deletes
  43.     the line separator before the line and merges the line onto the previous
  44.     line.  The resulting line may be too long to fit on the screen, in which
  45.     case it has a continuation indicator.
  46.  
  47. >>  Go to the end of a long line and move to cursor one line up.  Note what
  48.     happens.
  49.  
  50. >>  Press <Return> to insert the separator again.
  51.  
  52. Remember that most Origami commands can be given a repeat count.  Note that
  53. this includes characters which insert themselves.
  54.  
  55. >>  Try that now -- type M-8 * and see what happens.
  56.  
  57. If you want to transpose two characters, move to the last one of the pair
  58. and type C-T.
  59.  
  60. >>  Move to the n of the word wrogn and type C-T.
  61.  
  62. You've now learned the most basic way of typing something in Origami and
  63. correcting errors.  You can delete characters, words or lines as well.
  64. Here is a summary of the delete operations:
  65.  
  66.      <Backspace>   Delete the character just before the cursor
  67.      C-H           Delete the character just before the cursor
  68.      C-D           Delete the character the cursor is under
  69.  
  70.      C-K           Kill from the cursor position to end of line
  71.      C-X C-K       Kill a whole line
  72.      M-C-K         Kill a whole line and put it to the kill/pick-buffer
  73.  
  74. Now suppose you kill something with M-C-K, and then you decide that you
  75. want to get it back?  Well, whenever you kill something with M-C-K,
  76. Origami saves it for you.  To yank it back, use C-Y.  Note that you don't
  77. have to be in the same place to do C-Y.  This is a good way to move text
  78. around.  Note that a line can be a closed fold.  C-K does not allow to
  79. kill a fold, it only works on text lines.  M-C-K and C-Y work with folds.
  80. Origami puts the yanked text in a fold.  Use C-U to unfold it.
  81.  
  82. C-X C-K works for folds too.  You might think that the last one is
  83. dangerous, but you can get such a line back by typing C-X C-Y directly
  84. after you deleted it by accident.  This function only works for one line,
  85. which means that you should be careful when using C-X C-K.
  86.  
  87. >>  Type C-N a couple times to position the cursor at some line on this
  88.     screen.  Now kill that line with M-C-K.
  89.  
  90. The text that has just disappeared is saved so that you can retrieve it
  91. by C-Y.
  92.  
  93. >>  Try it.  Type C-Y to yank the text back.  Then unfold it with C-U.
  94.  
  95. Think of C-Y as if you were yanking something back that someone took away
  96. from you.  Notice that if you do several M-C-K's the text that is killed is
  97. all saved together so that one C-Y will yank all of the lines.
  98.  
  99. >>  Try it.  Type M-C-K several times.
  100.  
  101. >>  To retrieve that killed text:  Type C-Y.
  102.  
  103. Sometimes you want to copy parts of your text instead of moving them.  This
  104. function is performed with M-w, which only copies a line to the kill/pick
  105. buffer and does not remove it from your text.
  106.  
  107. >>  Move the cursor to this line and type M-w.
  108.  
  109. >>  Move the cursor to this line and type C-Y to get it back and C-U to unfold
  110.     it.
  111.  
  112. If you want to copy or move longer blocks of text, put them in a fold and copy
  113. or move this fold.  If you are familiar with Emacs, you will notice that these
  114. functions work different from Emacs, but we all here like them more than Emacs
  115. regions.
  116.