home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR8 / WSPLUS12.ZIP / README.TXT < prev    next >
Text File  |  1993-08-25  |  5KB  |  89 lines

  1.     I hate keystrokes that aren't needed!  It was for this reason that I
  2.     wrote this generic front end routine for my editor and a few other
  3.     programs.  This routine has a few features that make it wonderfully
  4.     powerful for minimizing keystrokes.  I have also enclosed my personal
  5.     configurations for my own editor because some of the features of my
  6.     front end can be used in cunjunction with the editor (in particular my
  7.     GREP-goto facility).
  8.  
  9.     Since I was raised on WordStar, (I think because of my Borland
  10.     upbringing)  I used the WordStar file 'ws.s' for my basic editor. I
  11.     kept many, but not all, of the commands in your basic set. The end
  12.     product, however was far from an off the standard shelf editor I have
  13.     seen (I have even tinkered with Brief... but went back to Qedit....
  14.     imagine that). I use an enhanced keyboard and take full advantage of
  15.     that in my keystroke commands.
  16.  
  17.     I wrote a routine called Loader (I originally wrote it for Qedit, but
  18.     have since greatly enhanced it for Sem-Edit).  This routine is actually
  19.     very generic, but I made special hooks for Sem-Edit.  One of the big
  20.     annoyances of Qedit, was that it could only recognize six file
  21.     extensions... this limitation, though not horrible, was unacceptable
  22.     when you program in five or six different languages.  So I had to write
  23.     a routine that would allow Qedit to recognize as many extensions as
  24.     possible.  I also wanted it to load all the files with allowable
  25.     extensions if they were available (As I'm sure you probably know, there
  26.     is usually a '.h' associated with a '.c'  or '.cpp' file... I wanted it
  27.     to load both the '.c' and the '.h' file).  One other feature was the
  28.     ability to load exact file names in my list of acceptable extensions (I
  29.     didn't want to load files with a '.sys' extension, but I wanted to be
  30.     able to load 'config.sys' without typing the whole name and extension).
  31.  
  32.     After using that a couple of days, I got more spoiled and wanted more
  33.     power than just recognizing extensions!  So I added a feature that
  34.     would allow the loading of partial filenames with no wildcards (you
  35.     could just type: "q te", and Qedit would load all of the files that
  36.     began with 'te' and had acceptable extensions).  I also added a routine
  37.     so if you typed: "q 'mp' ", Qedit would load all of the acceptable
  38.     files that had 'mp' in their filename.
  39.  
  40.     Then I added an intelligent 'grep' command,  if you typed the
  41.     following: "q lo /us crt, dos/ *.pas", Qedit would load all files that
  42.     began with 'lo' then would search all of files with a '.pas' extension
  43.     for the three words appearing between the slash's ('US'; 'CRT'; and
  44.     'DOS'... because of a DOS limitation, commas are ignored).  Case is
  45.     ignored and they must appear in that order on the same line. So a file
  46.     with: "Uses Crt, Dos" would be loaded, but "Uses Dos, Crt" would be
  47.     ignored.  This feature allowed my grep to load routines that you could
  48.     only remember parts of the variable names, or you couldn't remember if
  49.     you put a underscore between words in a variable.  This was pretty
  50.     slick... but then Sem-Edit came along and it was time to go to the next
  51.     level.
  52.  
  53.     One of the 'features' I 'programmed' into Sem-Edit was a way to
  54.     remember the last place you edited in your file, and when the Sem-Edit
  55.     would load these particular files, it would go right to that point.
  56.     This does make a tag file ('SEMEDIT.$E$'), but this is a small price to
  57.     pay for this kind of power!  I then added to my Loader routine a way to
  58.     generate a file I named ('GREPGOTO.$E$'), this file will make my
  59.     Sem-Edit goto the first occurrence of the grep search string in each of
  60.     the loaded files.   I think you can see the power of such a routine!
  61.  
  62.     My Loader routine is a strange sort of program that expects itself to
  63.     be called from a batch file (Enclosed is 'Q.BAT' as an example). Loader
  64.     actually generates its own batch file (Loader1.Bat) to call Sem-Edit.
  65.     It places Loader1.Bat in a subdirectory defined in the original batch
  66.     file ('Q.BAT' must be modified to point to a directory in your current
  67.     path). Specific parameters are defined in a file also pointed to in the
  68.     original batch file (in this case 'Q.CFG').  I think you can see the
  69.     implications of having a setup like this:  you may use this Loader to
  70.     for multiple programs (I use it for Dos-Edit and 4Print (I also
  71.     included my 4print batch and configuration for another application
  72.     example 4p2.bat and 4p2.cfg)... they can only load one file at a time.
  73.     That is why I have a Single_File option in my config-file).  For a more
  74.     detailed explanation of Loader, just type 'Loader' at the DOS-prompt.
  75.  
  76.     Enclosed is a copy of my files associated with Sem-Edit, WSPLUS.S and
  77.     WSPLUS.CFG),  Loader and it's associated files (LOADER.EXE, Q.BAT,
  78.     Q.CFG).  Please take a look at them, I don't think you will be
  79.     disapointed.  In fact, you may find them quite useful.
  80.  
  81.     Sincerely
  82.  
  83.     Douglas Joseph
  84.     117 Oak Leaf Lane
  85.     Longwood Fl,  32779
  86.  
  87.     H:  407-862-6218
  88.     W:  407-862-2158
  89.