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