home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Editor / DVD!FX17.LHA / FrexxEd / fpl / CompleteWord.FPL.README < prev    next >
Encoding:
Text File  |  1995-05-18  |  2.5 KB  |  73 lines

  1. #############################################################################
  2. File:                CompleteWord.FPL
  3. Author:                Jesper Skov
  4. Email:                jskov@iesd.auc.dk
  5. Short:                Complete current word with matching words in document 
  6. Version:            1.2
  7. Date:                18.05.95
  8. Local settings:
  9. Global settings:
  10. Keysequence:        Amiga /
  11. Type:                function
  12. Prereq:
  13. Copyright:            © 1995, Jesper Skov
  14.                     Use/distribute according to the terms of GNU GPL.
  15.                     (See the file 'COPYING.GNU' for more info!)
  16. #############################################################################
  17.  
  18. FUNCTION
  19.   This function completes the word at the cursor with matching words
  20.   found in the document. First the upper half of the document is searched
  21.   then the lower half. If you activate the function repeatedly, different
  22.   completions will be inserted. Completions you do not accept will only
  23.   be showed once!
  24.   Example text:
  25.  
  26.     fool  fuck_off  fuck off  FOOD  foobar  food for thought  f   friends
  27.                                                          ^
  28.  
  29.   Activating the function at the ^ mark will result in the following
  30.   strings replacing the letter f:
  31.  
  32.    Activation#        String
  33.    ---------------------------------------
  34.          0           f (obviously :)
  35.          1           for
  36.          2           food
  37.          3           foobar
  38.          4           fuck
  39.          4*          fuck_off
  40.          5           fool
  41.          6           friends
  42.          7           f (cycle restarts)
  43.  
  44.   Note that the FACT has a bit to say about how words are recognized.
  45.   Here 4* will only appear if the '_' char is a word symbol. If not,
  46.   the first part of the word (fuck) would be recognized, but also
  47.   canned since you had already discarded "fuck" in step 4.
  48.  
  49.   You would probably want the '_' char to be a word symbol if you use
  50.   underscore in your labels or function declarations...
  51.  
  52.   If you can get used to this little helper (it is quite easy!) you
  53.   will be able to    speed up your writing! Especially if programming
  54.   where labels/constants are excellent food for this beast.
  55.  
  56.  
  57. HISTORY (REV)
  58.   18.05.95 (2)    Just a *minor* change from GetBufferID() to GetEntryID()!
  59.         By Daniel Stenberg. Made it work better with split views...
  60.   02.03.95 (1)    Now works case in-sensitive.
  61.   03.02.95 (0)    Works a lot faster than I had ever hoped. Smoooking!
  62.  
  63. BUGS
  64.  
  65. TODO
  66.   A flag that defines if the found word should be capitalized like the
  67.   word you try to complete.
  68.  
  69. SEE ALSO
  70.   Documentation on FACTs.
  71.  
  72.   Stephen King's "Four Past Midnight" (ISBN: 0-340-53526-1)
  73.