;

                     ZDE (Command Descriptions #1)

                      A-   Auto Indent Mode    
                      B-   Block Commands      
                      C-   Cursor Movement     
                      D-   Deleting            
                      E-   Disk Operations     
                      F-   File Commands       
                      G-   Find Replace        
                      H-   Header              
                      I-   Information         
                      J-   Insert Mode         
                      K-   Line Spacing        
                      L-   Margins             
:a


AUTO INDENT MODE:  ^OA

      This feature is most useful for typing  outlines,  structured
      program  source  code, and other text where the "left margin"
      varies.  When in  Auto  Indent  mode,  the  RETURN  key  acts
      differently:  If  you  are  entering  new  text,  it  will be
      indented to match  the  previous  line.  Thus,  whenever  you
      change    indentation,    the   new   level   is   maintained
      automatically.  If you are just moving through the file,  the
      cursor advances past any existing indentation.
:b


BLOCK COMMANDS:  ^KB,K,U,Y,C,V,W,PB, ^QB

      A Block of text is  delimited  by two markers [default ^@] which 
  remain in memory until reset or deleted.

  ^KB marks the beginning of the block; ^KK marks  the  end.   Markers
      are  inserted  in  the text.  The two markers are identical; the
      first one present is the start(!).

  ^KU unmarks the block, removing any marker(s) set.   (Block  markers
      can  also  be  deleted  individually  like ordinary characters.)
      Markers are automatically removed as appropriate when ^KB/K  are
      used again.
  
  ^KR reads in the contents of a disk file, inserting it as a block
      after the current cursor position.  You will be asked for the
      name (and, optionally, mode) of the file.  



      Other block operation commands all require a Block to be marked:

  ^KY deletes the block (including markers).

  ^KV moves  the  Block  text to the present cursor location, deleting
      the original;  ^KC  simply  copies  it,  leaving  the  original.
      Neither  block  nor  place  markers  are transferred.  (If there
      isn't enough memory, write the block to a file, delete  it,  and
      read it back in: ^KW,^KY,^KR.)

  ^KW writes  the block text to a disk file; you will be asked for the
      filename (and optional mode).

 ^KPB (^KP with B option) prints the block text only.

  ^QB command, from wherever  you are in the file, moves the cursor to 
      the Block start.
:c


CURSOR MOVEMENT:  Arrow keys, ^F,^A, ^QR,C,I

  ZDE supports three sets of Arrow keys, which function interchangeably.
  The two built-in sets support the WordStar "arrow key diamond" ^E, ^X,
  ^D,^S,  and  the  ANSI  standard  3-byte sequences (ESC-[-A etc).  The
  third set is user configurable,  and must  be installed with ZDENSTAL.
  These keys move the cursor up, down, right, and left respectively.

  Preceded by ^Q-, any arrow key (except ANSI) moves  more  quickly:  to
  the top or bottom of the screen, to the left or right end of the line.

  There  are  also  two  word  movement commands: ^F moves right, to the
  start of the next word; ^A moves left, to the start of  the  last  (or
  current) word.  Both have a maximum movement of 255 characters.

  For  quickly covering large distances, the commands ^QR and ^QC go all
  the way to the beginning and end of the file, respectively;  ^QI  goes
  to any specified page (or line, in non-documents).
:d

DELETING:  ^G,DEL, ^T, ^Y,^QY,^Q-DEL,^QT

  You  can  delete text one CHARACTER at a time: ^G deletes to the right
  of the cursor, and DEL to the left.

  [If you have no DEL key, you can  install  another  equivalent.]  Note
  that the ordinary BS (^H) does not normally delete.

  ^T  deletes an entire WORD to the right (up to 255 characters).

  ^Y  deletes  the  entire current LINE.  ^QY deletes only the part
      of the  line to the right of the cursor; ^Q-DEL  deletes  the
      part to the left.

  ^QT deletes UP TO a specified character.  Example: "^QT." deletes
      to the end of the sentence.  Special case:  "^QT-CR"  deletes
      to the next HARD CR, the end of the paragraph.

  Accidentally deleted text can usually be recovered (see UNDELETE).
:e


DISK OPERATIONS:  ^KF,E

  ^KF gives  an unsorted list  of disk FILES:  hit  CR  to list the 
      directory specified by the current file, or specify  a drive,
      user,  or named  directory (colon optional).  If there is not 
      enough room to  fit all the files on the screen, you will see 
      "..." at the end to indicate that there were still more.  
      Press ESC or Space to continue.

  ^KE will  ERASE  a single disk file, if you need more room on the
      disk.  (No wildcards allowed.)
:f


FILE COMMANDS:  ^K-N,S,X,D,Q,L

  ^KN NAMES your work  or changes  the current file mode.   You can
      change  the filename  in  the  header  before  saving, and/or 
      change its  mode to WordStar,  ASCII, or Nondocument.  To set
      the  file mode,  introduce the mode  character with  the left
      square bracket, e.g., "Name: MYFILE>WS [W". 

  ^KS SAVES your work:  what's in memory  is written  to disk under 
      the file name in the header.  (You must have a file name; one
      will  be  requested  if necessary.)   If  that  file  already 
      existed, a backup (BAK) file may  be preserved (configurable;
      see installation guide).   If you  haven't changed  the file, 
      ZDE prompts you to confirm that you want to save it anyway.



  There are several different commands for finishing up:

  ^KX saves your work and then EXITS to CP/M.

  ^KQ just QUITS.  If the file has been modified,  ZDE asks  if you
      want to abandon the changes.

  ^KD (DONE) saves your work, then loads a new file to edit.

  ^KL quits the current file and LOADS a new one to begin editing.
:g


FIND, REPLACE:  ^Q-F,A, ^L,^\

  ^QF is  the  command  to  FIND  a  string.   The  search normally
      proceeds from  the  cursor  position  forward,  and  is  case
      (upper/lower) sensitive.  There are two options:

           "B" = search backwards;  "C" = case sensitive search

      If used, the options must be enclosed in slashes (eg, "/bc/")
      before the search string.  (If  you  want  to  search  for  a
      string  beginning  with  a  slash,  use  an empty (//) option 
      first.)  In  addition,  a  ^PZ  [this  can  be  reconfigured] 
      functions  as  a  wildcard,  matching  any  single character.  
      Other control  codes,  like ^M  for newline,  can be included 
      (with the ^P prefix where needed). 




Examples:

           Find: /c/^MLABEL   matches "LABEL" at line start only;
           Find: 4^Z^Z01      matches "42201", "47401", etc;
           Find: wordstar     matches "WORDSTAR", "WordStar" etc;
           Find: ///88        matches "/88";
           Find: /b/esc       looks backwards for "Esc", "esc" etc.




  ^QA is  the  FIND/REPLACE command.  It asks for a string to find, 
      and what to change it to.  (All options above  apply  to  the 
      search  string  only.)   The  cursor  will be  placed on each
      occurrence of the string successively, starting at the cursor
      location.  You will see the prompt "Chg?" in the header.   To
      replace the old string with the new one, press "Y";  anything
      else skips to the next.   To  change  all further occurrences 
      without being asked,  press "*".   ESC cancels  at  any time.  
      (Note:  if ^QA is used  in  a  Macro,  it  will automatically 
      assume "*" with no further input required.)

  ^L  (or  ^\,  if  ^L is an arrow key) repeats the last ^QF or ^QA 
      command.  For ^QA, you will be  asked  whether  you  want  to 
      replace  the  found  string.   For  both,  direction and case 
      options remain unchanged.
:h


HEADER:  ^OQ

     ZDE normally gives you a header, or status line,  at the top of the 
  screen.  However, if you like you can toggle the header display on and
  off with the ^OQ (Quiet) command.  [The header may also be  suppressed
  by default.]  This  lets  you  see more  file text.  It can also speed
  up operation on some slower terminals, as the position doesn't have to
  be continually updated.


  -------------------------------------------------------------------
   B0/WORK:ZDE.DOC [A Pg 8    Ln 31   Cl 53   INS vt hy AI DS MR  ^Q_
  -------------------------------------------------------------------

  "BO/WORK:ZDE.DOC [A" = Current directory, filename and mode.
    
  "Pg 8, etc" = Current  position  in  file  by page, line, column.  For 
		"N"ondocuments, there  is  no  page  number  display. If 
		pagination  (^OP) is off, you will see "Pg 0" (document) 
		or "OP" (nondocument) here.

        "INS" = Insert mode on. (^V)
         "vt" = Variable tabs on. (^OV)
         "hy" = Hyphenation enabled. (^OH)  Doesn't display in "N" mode.
         "AI" = Auto indent mode on. (^OA)
         "DS" = Double spacing. (^OS)
         "MR" = Margins released. (^OX)  Doesn't display in "N" mode.
         "^Q_": Prefix keys (and some prompts) display here.
:i

INFORMATION:  ^KI 

   ^KI displays an Information message with:

           * the ZDE version and date;
           * whether (Y/N) the file has been changed since last saved;
           * the current size of the file in bytes;
           * the number of bytes of text memory used and free.

   (1024 bytes = 1K).   You will  note  that  the file uses  about 20-25% less 
   memory than its actual length; this is due to ZDE's compression of text.

   (Note:  ZDE is  limited to 16-bit arithmetic.   In  the unlikely event that
   file size should exceed 64K it will be shown mod 64K; just add 65536.)

   Block moves and copying are limited by the amount of free memory.  Further,
   when there is less than 1K free, response time can get very slow.
:j


INSERT MODE:  ^V

  ^V  toggles  insertion on and off.  If INSERT is OFF, any text to 
      the right of the cursor  is  overwritten  as  you  type.   If 
      INSERT  is  ON,  what you type is inserted, and existing text 
      moves to the right.

:k


LINE SPACING:  ^OS

  ^OS command toggles between single and double line  spacing.   In 
      double  space  mode,  the following functions generate double 
      carriage returns: CR  (^M),  Insert  CR  (^N),  Reform  (^B), 
      Wordwrap.   You can easily mix single and double spacing; the 
      ^B command can convert between the two.

      Note: if you prefer to keep your actual file  single  spaced, 
      you  can  still get a double-spaced printout by using the "D" 
      option of the ^KP command (see PRINTING).
:l


MARGINS:  ^O-R,L,X,C,F

  ^OR sets the RIGHT margin, enabling wordwrap,  reformatting,  and
      centering.  If set to column 1,  all formatting functions are
      disabled (as they are in "N"ondocument  mode).  At the prompt
      "Column:" enter the column number (1-255), or just hit CR for
      the  current cursor column.   If the  value entered conflicts 
      with the current left margin, ZDE sets the left margin to 1.

  ^OL sets the LEFT margin in an identical fashion; of course,  the 
      value  must  always  be  less  than the current right margin, 
      meaning it's best to set the right margin first.

  ^OX temporarily RELEASES the margins (resets them to 1), allowing 
      you  to  type  outside  them.   Use  ^OX again to restore the 
      margins.



  ^OC CENTERS the current line with respect to the margins, if set.

  ^OF sets the current line FLUSH right, if the right margin is set.
