home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / SYSTEM / FILEC120.ZIP / FILEC12.DOC < prev    next >
Encoding:
Text File  |  1990-10-31  |  8.3 KB  |  177 lines

  1.                 FILEC 1.2
  2.  
  3. Filec (pronounced file-see) is a memory resident utility (TSR) designed to
  4. provide filename completion in imitation of the unix facility of the same
  5. name.
  6.  
  7.                 OPERATION
  8.  
  9. Filec is easy to operate.  To complete a filename, type the CTRL and TAB
  10. keys simultaneously.  For instance, suppose you are in a directory with
  11. 3 files: test1.txt, test2.txt, and letter.txt.  If you type 'let' (of
  12. 'le', or even just plain 'l') then hit both the CTRL and TAB keys
  13. simultaneously, what you typed will be completed to 'letter.txt'.  On
  14. the other hand, if you had typed 'te' then CTRL-TAB you would only get
  15. 'test', not 'test1.txt' or 'test2.txt' because 'test' is as far as you
  16. can complete 'te' without ambiguity.  Filec will 'beep' after a
  17. partial completion to alert you that there is more than one completion
  18. available.  It will also beep if there are no possible completions.
  19. For more on completion behavior, see FIGNORE in the OPTIONS section below.
  20.  
  21. Filec has another behavior.  If you want to see all the possible
  22. completions of a partial filename (you might want to do this if filec
  23. can't complete the name because of mutiple possible completions), hit
  24. the 3 keys CTRL, TAB, and SHIFT simultaneously.  In the example above, if
  25. you entered 'te' then CTRL, TAB, and SHIFT simultaneously, filec would
  26. display 'test1.txt test2.txt' and then reprint the last line of input,
  27. allowing you to continue typing.
  28.  
  29. This second feature provides a handy 'dir /w' feature.  Typing CTRL, TAB,
  30. and SHIFT directly after the prompt will list the current directory (like
  31. dir *.*).  This is faster to type than dir /w, and it also lists files and
  32. directories in lowercase in 'filename.ext' (with a final '\' for
  33. directories) format format which I find much easier to read.  It will also
  34. alphabetize, if desired (and by default, see OPTIONS section below).
  35. Filec can handle directories with up to 120 entries.  If asked to print
  36. out more than that it will print only an error message.
  37.  
  38. By default, filec 1.2 lists all directories first, then all files, and it
  39. sorts each category alphabetically. Running on a 6 MHz AT clone there is
  40. no appreciable pause for this processing.  This may not be true on slower
  41. machines.  See OPTIONS below to learn how to disable these features.
  42.  
  43. Filec fully understands pathnames and drive numbers.  e.g. getting all
  44. completions for 'a:' would give the directory listing of the current
  45. directory for drive a:, but getting the completions for 'a:\' would list
  46. the top directory for drive a:.  All completions of '..\' is the list of
  47. the parent directory to the current one.  Using both features of filec
  48. provides a handy way of browsing around your directory tree.  Filec also
  49. understands wildcards, so, for example, getting all completions of *.c
  50. would list all files with '.c' in their extensions.  If the directory has
  51. both filename.c and filename.com they would both be listed.
  52.  
  53.  
  54.                 INSTALLATION
  55.  
  56. Filec is installed by running filec.com.  (Just type  'filec'  at the
  57. dos prompt.)  After you feel comfortable with filec, I recommend having
  58. your autoexec.bat file install it automatically.
  59.  
  60. Unlike many TSRs, filec can easily be removed from the operating
  61. system.  Filec will stay resident until you type 'filec quit' at which
  62. time it will remove itself from your operating system.  It can also be
  63. temporarily disabled with 'filec wait' and restarted with 'filec restart'.
  64. In the event that othere TSRs are loaded below it, filec may just suspend
  65. its operation rather than remove itself from memory.  If it didn't do
  66. this it would crash your machine when it quit.
  67.  
  68.                 OPTIONS
  69.  
  70. Filec has several command-line options controlling its behavior and one
  71. environment variable.  The environment variable FIGNORE must be set before
  72. running filec.  The command line arguments may be used at any time by
  73. re-running filec with the appropriate comand-line arguments.  This doesn't
  74. make filec take up any more space in the system.
  75.  
  76. In the case of the command-line options, filec just looks for the first
  77. letter of each command. e.g. one may use 's', 'scan', or 'sofa' instead of
  78. the command 'scancode.'  Any number of command-line options may be used at
  79. one time and may be issued in any order.
  80.  
  81. The default initialization of filec is equivalent to the command
  82. 'filec alphabetic 1 directories 1 scancode 15'.
  83.  
  84. Command-Line Options:
  85.  
  86. (a)lphabetic  If you don't like alphabetically listed files, execute
  87.     'filec a 0'.  To restore alphabetization execute 'filec a 1'.
  88.  
  89. (d)irectories  If you don't want directories listed first, execute
  90.     'filec d 0'.  To restore directory first listing execute 'filec d 1'.
  91.  
  92. (s)cancode  Filec starts up with CTRL-TAB and CTRL-SHIFT-TAB as the 'hot
  93.     keys.'  You can specify some other key than TAB by telling filec
  94.     its scancode.  e.g., 'filec s 1' would make ESC the hot key,
  95.     and 'filec s 28' would make make the hot key be RETURN.  CTRL and
  96.     CTRL-SHIFT must still be used, however.  Some other scancodes are
  97.     TAB = 15, F1-F10 = 59-68, delete = 14.
  98.  
  99. (q)uit  'filec quit' will exit from filec, if possible.  If some other
  100.     TSR is loaded after filec it may be impossible for filec to
  101.     remove itself without crashing the system, in which case it will
  102.     merely suspend operations as if you had issued the (w)ait command.
  103.  
  104. (r)estart  'filec restart' will make filec resume operations after a
  105.     (w)ait or failed (q)uit command.
  106.  
  107. (w)ait 'filec wait' will make filec suspend all operation until asked
  108.     to resume operating by the (r)estart command.
  109.  
  110. The FIGNORE environment variable:
  111.  
  112. Frequently, you will have many files with the same name but different
  113. extensions, e.g., if your directory contains the files file.c, file.obj,
  114. file.bak, and file.com and you try to complete 'fi' you will only get
  115. 'file' and a boop, because there is no unique completion.  There is a way
  116. around this by using the FIGNORE environment variable.  FIGNORE should be
  117. set to a list of file endings that you want overlooked in favor of any
  118. other ending.
  119.  
  120. FIGNORE must be set before filec is started.  For instance, my autoexec
  121. file contains the following two lines:
  122.  
  123. set fignore=.dvi;.log;.exe;.com;.obj;.aux;.map;.mak;.bak
  124. c:\util\filec
  125.  
  126. Notice the format for FIGNORE.  It is a list of endings separated by
  127. semi-colons.  Each ending can be at most 4 characters long.  FIGNORE
  128. can have at most 20 endings.  I'm not sure what happens if you give it
  129. too many filenames.
  130.  
  131.  
  132.                 COMPATIBILITY
  133.  
  134. Filec has run on every AT compatible it has been installed on, so far.
  135. It has been known to behave strangely on XT clones, but usually works.
  136. It has never yet hurt anything.  Filec runs on monochrome monitors in
  137. text mode.  If you have CGA use filecga instead.  It also works only
  138. in text mode.
  139.  
  140. I have not found filec to be incompatible with any software--so far.  I am
  141. running it on an AT clone with dos 3.3, ced, and turbokey all running and
  142. have had no problems.  Occasionally, if, after filec prints all
  143. completions, you attempt to delete some characters in the current line,
  144. CED will delete all the completions.  This can be startling, but there is
  145. no cause for worry.  CED keeps track of the cursor position very carefully
  146. and likes to keep the screen clean.  It also seems to function correctly
  147. with some keybuffer extension programs, though I thought it wouldn't.  If
  148. you have any information to the contrary, please let me know.
  149.  
  150. Filec stays active at all times.  This means you can use it to complete
  151. filenames when you are inside your favorite application as long as it
  152. (the application) does not completely take over the keyboard interrupt.
  153. It also means that if your application uses the sames hot keys as filec
  154. there is going to be a compatibility problem (this is why ALT-TAB in
  155. the earlier versions of filec has been replaced by CTRL-TAB --- ALT-TAB
  156. conflicted with MS Windows).
  157.  
  158.                 WARRANTY
  159.  
  160. None.
  161.  
  162.                 USAGE
  163.  
  164. Filec is in the public domain.  Anyone is allowed to use this and pass
  165. it on to others free, or for no more than a nominal charge for handling
  166. only.  You are under no obligation to give me anything, unless you
  167. absolutely have to.  Of course, I wouldn't object.  Here's my address.
  168.  
  169.         Michael D. Hirsch
  170.         2740 College Ave. #101
  171.         Berkeley, CA  94705
  172.  
  173. Send any bug reports, suggestions or other communications to the above
  174. address, or send me email at:
  175.         mhirsch@math.berkeley.edu
  176.         mhirsch@ucbbrahm.bitnet
  177.