home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / text / show / want / docs / want.doc next >
Text File  |  1994-07-20  |  22KB  |  583 lines

  1.  
  2.                               WANT
  3.  
  4.                  Searches Documents for Keywords 
  5.  
  6.                  Requirements......Hardware & Software
  7.                  Installation......A New Concept
  8.                  Using WANT........Operating Instructions
  9.                  CLI Usage.........Command Line Template
  10.                  WB Usage..........Tooltypes
  11.                  Menus & Help   
  12.                  Wildcards.........*
  13.                  Hot Tips..........For Advanced Users
  14.                  GNU Disclaimer....License
  15.                  About BOTH........Credits & Distribution
  16.  
  17.                  By BOTH Software
  18.                  GiftWare  © 1994
  19.  
  20.  
  21.  
  22.   --------------------------------------------------------------------
  23.                  SYSTEM REQUIREMENTS  VERSION 1.017
  24.   --------------------------------------------------------------------
  25.  
  26.   WANT needs: WB 2.x and up - Any Amiga 
  27.               AmigaGuide, or another text reader
  28.               About 1 Meg of memory to hold a file.
  29.               A Hard Drive would be nice, but not necessary.
  30.  
  31.  
  32.   --------------------------------------------------------------------
  33.                  How to install WANT
  34.   --------------------------------------------------------------------
  35.  
  36.  WANT is distributed in a single directory. Copy that directory and 
  37.  it's drawer icon to any place on your hard drive. The first time you 
  38.  run WANT, it will make all the necessary assigns to add itself to the 
  39.  system. (No more modifications to the startup-sequence!). The 
  40.  ASSIGNS are temporary. They will last only until you turn off the 
  41.  power or reboot. 
  42.  
  43.  WANT makes these ASSIGNs to the system:
  44.  
  45.  WANT: DH?:WANT
  46.  LIBS: WANT:libs ADD
  47.  
  48.  Caution: Do not make WANT resident.
  49.           Do not move files out of WANT's directory.
  50.  
  51.   --------------------------------------------------------------------
  52.                Calling WANT from the CLI
  53.   --------------------------------------------------------------------
  54.  
  55.  TEMPLATE:
  56.  
  57.  WANT SOURCE,FILEREADER/K,EDITOR/KCOLOR/K,NOHIGHLIGHT/S,HIGHLIGHT/S,
  58.       BOLD/S,ITALIC/S,UNDERLINE/S,REVERSE/S 
  59.  
  60.  For a complete description of these command options, refer to the
  61.  tooltypes section.
  62.  
  63.  Unlike the tooltypes, you do not have to enter the full path for
  64.  EDITOR and FILEREADER as long as they are in the path.
  65.  
  66.  These commands are not positionally sensitive.
  67.  
  68.  If you simply enter WANT, the program will run with built-in defaults 
  69.  for the filereader, editor, highlighting and color.
  70.  
  71.   --------------------------------------------------------------------
  72.            OPERATING INSTRUCTIONS FOR WANT
  73.   --------------------------------------------------------------------
  74.  
  75. What does WANT do for you?
  76.  
  77.  WANT will search a textfile, like INDEX, for instances of words you 
  78.  supply. For example, let's say you have the AmiNET INDEX file that 
  79.  lists all the files available from that mirror site. You want to know 
  80.  if a file called AGATE is in the list. WANT will search the file,
  81.  looking for any instance of the word AGATE. Each line of the INDEX file
  82.  that contains the word AGATE will be displayed on the screen.
  83.  
  84.  Let's try another example using INDEX - you want to find all the
  85.  lines that contain the words DATATYPE and GIF. WANT will display any
  86.  lines that have both words in it. WANT will also find lines with
  87.  DATATYPE or GIF, thus narrowing your search. Use the cycle gadget
  88.  labelled AND OR to select the function to use.
  89.  
  90. The Execute button
  91.  
  92.  Want gives you many options to select from the operating panel. After 
  93.  you select all of the options necessary, click the Execute button. 
  94.  This button tells WANT to begin retrieving the information you asked 
  95.  for.
  96.  
  97. Selecting a File with the File Requester
  98.  
  99.  You must select a file to search or view. If you forget, WANT will 
  100.  prompt you select a file from the file requester.
  101.  
  102.  The requester used in WANT was custom written for this application.
  103.  It has some features you may not have seen before. To select a file
  104.  or directory, just click the mouse once. Multiselection is not
  105.  supported. The four buttons at the bottom are:
  106.  PARENT, DRIVES, VOLUMES, and DIR.
  107.  
  108. PARENT
  109.  This button will select the directory above the one you are in. There 
  110.  is another, faster, way to invoke PARENT. Place the mouse pointer against
  111.  the left edge of the screen and press the Left Mouse Button.
  112.  
  113. DRIVES
  114.  This will display all the physical devices attached to your Amiga. It 
  115.  will show hard drives, floppys, CD players, RAM, RAD, and others.
  116.  
  117. VOLUMES
  118.  This will display all ASSIGNS and VOLUMES seen by the system.
  119.  
  120. DIR
  121.  Since the Amiga is a multitasking beast, you might leave WANT to do 
  122.  something else and then come back. The contents of the requester may
  123.  have changed in the meantime. By pressing DIR, the directory listing
  124.  is updated.
  125.  
  126.  
  127. Viewing a Text File without searching for terms
  128.  
  129.  WANT will also display any selected file with the filereader of your
  130.  choice. To read a selected file, select the "View a file" option 
  131.  then click Execute. You cannot search for terms when in this mode.
  132.  
  133. Redirecting the output to a Text Editor 
  134.  
  135.  Instead of a filereader, you may direct the output of WANT to the text 
  136.  editor of your choice. To do this, select the "Search and Edit" option.
  137.  This option works like "Search and View", but no highlighting is 
  138.  permitted (or wanted). The default EDITOR is ED, but you can change 
  139.  that to your favorite with the tooltype. Be sure to include the full path
  140.  to the editor. 
  141.  
  142.  If you want to edit an entire file with the editor:
  143.  
  144.       Select a file
  145.       Enter an asterick (*) as the ONLY search term
  146.       Select "Search and Edit"
  147.       Execute
  148.  
  149.  This will bring the entire file into your editor. Remember to
  150.  SAVE AS when you save an edited file. The filename has been changed.
  151.  
  152.  The Asterick (*), as a single search term, is considered a wildcard,
  153.  meaning all lines of the file will be 'found' and displayed.
  154.  
  155.  Also see wildcards
  156.  
  157. Highlighting words found by a search
  158.  
  159.  The word or words you asked to see are, by default, bolded. This
  160.  helps you locate the word more quickly. You can change the kind of
  161.  highlighting with the checkboxes labelled BOLD, ITALIC, UNDERLINE, 
  162.  and REVERSE. You may use any or all of these options. Experiment 
  163.  with the buttons to see which type of highlighting you prefer.
  164.  
  165.  The checkmark box on the screen labelled HIGHLIGHT will allow you to 
  166.  disable the highlighting when checked.  
  167.  
  168. Clearing the text entry fields
  169.  
  170.  The button called CLEAR will erase the two text entry fields so you 
  171.  may enter new data. These fields can be erased individually by 
  172.  pressing Control X.
  173.  
  174. Displaying extra lines on a search
  175.  
  176.  Not all files are as predictable as a mirror's INDEX. For example, 
  177.  the file you want to search may be an email letter or DOC file.
  178.  By simply asking WANT to find a word and display the line that
  179.  word was found in, you won't be able to see the word in it's
  180.  proper context. Ideally, you would like to see a few lines before
  181.  the word and a few lines after the word. The gadgets labelled 
  182.  LEADING LINES and TRAILING LINES let you select how many lines
  183.  to display before and after the line with the word in it.
  184.  
  185. Whole Word searches
  186.  
  187.  Normally, WANT will find a search term within another word. For 
  188.  example, if you ask for bet, WANT will find better.
  189.  If you want to search for examples of whole words, just check the 
  190.  Whole Words box. Now your entty will be treated as if you typed a 
  191.  space before and after the word.
  192.  
  193. Case Sensitivity
  194.  
  195.  Normally, WANT will treat your entries without regard to Case. If you 
  196.  need the case to be sensitive, check the Case Sense box. 
  197.  
  198. A pecularity of AmigaGuide
  199.  
  200.  If you use AmigaGuide as your filereader, you may find that searching 
  201.  an AmigaGuide document can give unpredictable results. If your search 
  202.  term is found in a line that begins with @NODE, AmigaGuide will get 
  203.  very confused. To see the results properly, try using the editor or a
  204.  different filereader. 
  205.  
  206.  
  207.  
  208.  
  209.  For more detailed instructions on the operation of WANT and some 
  210.  ideas on how to use it to your advantage, see hot tips.
  211.  
  212.   --------------------------------------------------------------------
  213.                      PULL DOWN MENUS
  214.   --------------------------------------------------------------------
  215.  
  216. Pull-Down Menus
  217.  
  218.      PREFS
  219.      HELP
  220.      ABOUT
  221.      QUIT
  222.  
  223.  Prefs is ghosted and not available in this version. 
  224.  
  225.  Help will display this AmigaGuide file if your selected filereader
  226.  is AmigaGuide. If you have selected another filereader, like More, 
  227.  the file called WANT.doc will be substituted.
  228.  
  229.  About will display information about BOTH Software.
  230.  
  231.  Quit will exit the program.
  232.  
  233.   --------------------------------------------------------------------
  234.                     WILDCARDS
  235.   --------------------------------------------------------------------
  236.  
  237.  The Asterick (*), as a single search term, is considered a wildcard,
  238.  meaning all lines of the file will be 'found' and displayed.
  239.  
  240.  The Asterick (*), when used as part of a search term means anything 
  241.  following is selected automatically. An example: gfx* will find any
  242.  line with gfx and will highlight any characters following gfx. It
  243.  would look like this: 
  244.  
  245.  Videotracker2.lha   gfx/misc   395K+Let graphics react to sound
  246.  
  247.  Another example: gfx*n will search for gfx and will highlight until
  248.  it finds an "n".
  249.  
  250.  picmerge.lha     gfx/conv 11K+Little utility for connecting 2
  251.  
  252.  "*" will find anything enclosed in double quotes.
  253.  
  254.  "* will find the first quote mark in a line but highlighting will 
  255.  not occur.
  256.  
  257.  * and Whole Word will not work. The terms are too vague for GAWK to 
  258.  interpret.
  259.  
  260.  The Asterick follows the UNIX rules of the Period. Using an Asterick
  261.  can result in unexpected highlighting results. We recommend you use
  262.  caution for this reason. 
  263.  
  264.   --------------------------------------------------------------------
  265.           RUNNING WANT FROM THE WORKBENCH
  266.   --------------------------------------------------------------------
  267.  
  268. Customizing the look of WANT
  269.  
  270.       This section covers the tooltypes available for WANT.
  271.       If you are not familiar with tooltypes, please refer
  272.       to the operating instructions provided with your Amiga. 
  273.  
  274.  
  275.  WANT will accept five tooltypes:
  276.  
  277.  FILEREADER, EDITOR, HIGHLIGHT, COLOR, SOURCE
  278.  
  279.  If for any reason the tooltype you invoke does not seem to work, 
  280.  please examine your entry for spelling or syntax errors. WANT will 
  281.  not report these errors to you. To remove a tooltype, enclose it in 
  282.  parentheses, then SAVE.
  283.  
  284.  We all have our favorite filereaders. WANT won't limit you to using 
  285.  any one filereader. You may specify the reader of your choice in the 
  286.  icon's tooltype.
  287.  
  288.  The default filereader is AmigaGuide. If you prefer More or MultiView,
  289.  or any other reader, just change the tooltype. The proper syntax is:
  290.  
  291.      FILEREADER=DH0:UTILITIES/MULTIVIEW
  292.  
  293.  The filereader MUST include the full path, like this:
  294.  
  295.      FILEREADER=DH2:TEXTREADERS/LOOKER
  296.  
  297.  Note: WANT expects to find More in SYS:UTILITIES. This is an 
  298.  internal default that you cannot change. This is done so that WANT has
  299.  a standard default in case AmigaGuide is not present on your drive.
  300.  If you are using V34 of the AmigaGuide.library, WANT will automatically 
  301.  turn off highlighting, since this version will not allow it. 
  302.  
  303.  Several filereaders were tested for compatibility with WANT. Here are 
  304.  some that worked well with WANT:
  305.  
  306.      AmigaGuide
  307.      Multiview
  308.      More
  309.      MuchMore
  310.      PPMore
  311.      CType
  312.  
  313.      Etale:  (efr) will not show colors, but works well in
  314.              all other respects. If you use this reader, set
  315.              the color tooltype to:  (COLOR=)
  316.      View80: Will not display highlighting or colors. To use
  317.              View80, enter the tooltype HIGHLIGHT=OFF.
  318.  
  319.  For more on Filereaders, see Hot Tips
  320.  
  321.  You may direct the output of WANT to a text editor. The tooltype is
  322.  EDITOR. You MUST enter the full path of the text editor.
  323.  
  324.      EDITOR=SYS:C/ED
  325.  
  326.  Highlighting is set to OFF when using the editor. This way, the
  327.  output file will not contain any of the Escape characters that 
  328.  WANT uses for highlighting.
  329.  
  330.  
  331. Highlighting options 
  332.  
  333.  When WANT gets a 'hit' on a keyword, that word is highlighted in any 
  334.  combination of the following ways: 
  335.  
  336.      Bold   Underline  Italic  Reverse
  337.  
  338.  Bold is the default, but you may change to any other. You may 
  339.  actually select all of them, but before you do that, test the effect 
  340.  first by checking the boxes on the GUI. Whatever highlighting 
  341.  options you select in the tooltypes will be reflected as default 
  342.  values on the screen.
  343.  
  344.  To set the highlighting options in the icon, follow these examples:
  345.  
  346.      HIGHLIGHT=ITALIC
  347.      HIGHLIGHT=REVERSE|BOLD
  348.      HIGHLIGHT=BOLD|ITALIC|REVERSE
  349.  
  350.  Notice the vertical bar separating the options. This is the SHIFTED 
  351.  BACKSLASH key. By using the vertical bar, you may select more than 
  352.  one option.
  353.  
  354.  You may choose not to have Highlighting and Colors as a default. Select 
  355.  this by adding the word OFF to the HIGHLIGHTING tooltype. Example:
  356.  
  357.      HIGHLIGHT=OFF
  358.  This option will disable all highlighting modes and colors.
  359.   
  360.  
  361. Colors
  362.  
  363.  The highlighted words can be made to print in one of the four basic 
  364.  colors of the WorkBench. You may have reset these color values from 
  365.  the original Gray, Black, White, and Blue. WANT can't tell what 
  366.  shades are actually being displayed. You will have to be the final 
  367.  arbitor of the colors. You may select, through the COLOR tooltype 
  368.  any one of these colors. Black is the default. If you have changed 
  369.  the palette preferences, Black may now be Mauve. You may have to 
  370.  experiment. Remember, select only one color:
  371.  
  372.      COLOR=WHITE  (or BLACK, BLUE, GRAY)
  373.  
  374. Default Directory
  375.  
  376.  Through the use of the SOURCE tooltype, you can select the path and 
  377.  filename that WANT will display in the listview. If you usually 
  378.  search files in the same directory, this is a timesaving feature. You 
  379.  can specify a directory or a directory and a filename. Here are some 
  380.  examples:
  381.  
  382.      SOURCE=AAMYFILES:
  383.      SOURCE=AAMYFILES:INDEX
  384.  
  385. Tooltype Summary
  386.  
  387.      FILEREADER=<path>filereadername
  388.  
  389.      EDITOR=<path>texteditor
  390.  
  391.      HIGHLIGHT=OFF
  392.                BOLD
  393.                ITALIC
  394.                UNDERLINE
  395.  
  396.  
  397.      COLOR=WHITE
  398.            BLACK
  399.            BLUE
  400.            GRAY
  401.            
  402.      SOURCE=<path><filename>
  403.  
  404.   --------------------------------------------------------------------
  405.                     Hot Tips
  406.   --------------------------------------------------------------------
  407.  
  408.      How to get the most from WANT
  409.  
  410.  You'll find that you usually search the same files. To search them 
  411.  quickly, make a directory called myfiles and put your favorite files
  412.  in this directory. Then enter the following line in your
  413.  startup-sequence:
  414.  
  415.      ASSIGN aamyfiles: <path>myfiles 
  416.  
  417.  Notice the 'aa' preceeding the name. From WANT, click the VOLUMES
  418.  button. The lists all the logical assigns made on your system, alpha- 
  419.  betically. The 'aa' will insure this ASSIGN is at the top of the list,
  420.  making it easier for you to find it.
  421.  
  422.  What can you put in this directory? RECENTS and INDEXES for a start. 
  423.  Fred Fish listings, FAQs, articles, readmes, docs, and anything else 
  424.  you might want to look through. This method eats up some disk space, 
  425.  but saves you the hassle of hunting through directories to find files.
  426.  
  427.  When you search Fish listings, its a good idea to choose about 25 
  428.  lines of leading and 5 lines of trailing context. You may adjust these
  429.  numbers at any time. The more lines you select, the longer the search
  430.  will take. (The filereader will take longer to load the file).
  431.  
  432.  Do you ever use FIND to locate a file on your hard drive? It's a 
  433.  great program, but by necessity, slow. You can create a file 
  434.  containing all the directories and files on your drive (or better yet,
  435.  a partition) and then use WANT to search that file, rather than wait 
  436.  for FIND. Here's how to do it:
  437.  
  438.  Let's assume you have created the ASSIGN outlined above, and want to 
  439.  create a file that lists all the directories and files on your DH1: 
  440.  partition. From the CLI type this:
  441.  
  442.    list >aamyfiles:dh1contents  DH1:* lformat "%F%N" ALL
  443.  
  444.  The drive light will come on for a while. When it turns off, the file 
  445.  called dh1contents will be in the directory myfiles. Now you can use 
  446.  WANT to search dh1contents. The search time should be less than one
  447.  second on a 1200, and longer on a 7Mhz machine. This works on CDROMs
  448.  and floppies also.
  449.  
  450. Using an Editor instead of a filereader
  451.  
  452.  You can select an editor instead of a filereader in the Tooltypes. 
  453.  If your editor requires a stack to be set, WANT cannot do it for you.
  454.  When the editor is called, it is passed the filename of a temporary 
  455.  file lovcated in RAM:. This file is named GAWK_OUTPUTxxxxxxxx. When
  456.  you save your file, always SAVE AS with a different filename and path,
  457.  or the results of your editing will be lost.
  458.  
  459. A special note to the UN*X literate
  460.  
  461.  The two text entry fields will accept ANY UN*X-like search expressions. 
  462.  Multiple expressions separated by the AND/OR gadget are allowed.
  463.  Any expression that could be used by egrep is allowed. i.e. [AaBb], 
  464.  all logical operators, and wildcards.
  465.  
  466.    Using UN*X Regular Expressions to search for more than two terms
  467.  
  468.  Enter the expression or multiple expressions like this:
  469.  
  470.      (word1)|(word2)|(word3)  etc.
  471.  
  472.  This will find word1 OR word2 OR word3. If you click the AND OR 
  473.  gadget to AND, and enter another expression in the second text field, 
  474.  the the search will AND the two expressions.
  475.  
  476.  Since WANT is designed to shield UN*X from the user, you may 
  477.  encounted unpredictable results with multiple expressions. Grep and Gawk's 
  478.  scripts are being assembled algorithmically in realtime. This presents 
  479.  a large workload for the system. You CAN confuse the process with 
  480.  overly complex expressions. 
  481.  
  482.  
  483.   --------------------------------------------------------------------
  484.                     GNU DISCLAIMER
  485.   --------------------------------------------------------------------
  486.  
  487.              EGREP & GAWK, the powers behind WANT
  488.  
  489.     EGREP & GAWK are powerful tools written by GNU. This is part of
  490.     GNU's disclaimer. For the rest of it, read LICENSE.
  491.     
  492.   --------------------------------------------------------------------
  493.   This program is free software; you can redistribute it and/or modify
  494.   it under the terms of the GNU General Public License as published by
  495.   the Free Software Foundation; either version 2 of the License, or
  496.   (at your option) any later version.
  497.  
  498.   This program is distributed in the hope that it will be useful,
  499.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  500.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  501.   GNU General Public License for more details.
  502.  
  503.   You should have received a copy of the GNU General Public License
  504.   along with this program; if not, write to the Free Software
  505.   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  506.  
  507.   --------------------------------------------------------------------
  508.                     ABOUT THE AUTHORS
  509.   --------------------------------------------------------------------
  510.  
  511.  WANT is GIFTWARE. That means if you like it and use it, you may
  512.  send us a Gift. A birthday card or email would be nice.
  513.  
  514.     If you distribute the program, distribute the entire package. 
  515.     You may upload WANT to any BBS or archive. WANT may be freely
  516.     distributed on club disks, by Amiga Reports and by Mr. Fred Fish.
  517.     See below for a list of filenames to be included.
  518.  
  519.  WANT is free to use and copy as you see fit. The Authors retain all
  520.  rights to the program. The Authors are not responsible for any
  521.  damage the program may cause.
  522.  
  523.  WANT was tested on a 4000, 3000, 2000, 600, and a 1200  without problems.
  524.  
  525.  This is the first release of WANT. The next release will include a 
  526.  preferences section that allows you to preset groups of files to be 
  527.  searched. Predefined search terms and context lines for each group of
  528.  files may be set. If you have any ideas about features WANT should
  529.  include, please contact the authors. We wrote WANT so we could search
  530.  INDEXES, RECENTS, and Fishlists, but we soon found other uses for it.
  531.  We would really like to hear from you. If you find a character that
  532.  causes problems with a search, please let us know.
  533.  
  534. Files included in this release (1.00):
  535.  
  536.       WANT  --------- The Executable
  537.       egrep --------- The GNU file
  538.       gawk ---------- The GNU file
  539.       ixemu.library - Runtime Library for GNU utilities
  540.       LICENSE ------- The GNU license
  541.       WANT.guide ---- This AmigaGuide file
  542.       WANT.doc ------ Instructions for the Guideless
  543.       WANT.readme --- An unusually dull readme file
  544.       Icons --------- 
  545.  
  546. If you find any bugs or have any comments, please contact the Authors:
  547.  
  548.       C & UN*X Code                  Program Design, GUIs, Docs
  549.       --------------------------     --------------------------
  550.       Will Bow                       Colin Thompson
  551.       1531 Corinth Unit 1            9606 Carroll Cyn. Rd. H9
  552.       West Los Angeles, CA 90025     San Diego, CA 92126
  553.       (310) 478-4913                 (619) 695-2181
  554.                                      InterNet: colin@cts.com
  555.  
  556.  A note to programmers:  The file requester used in want will be available
  557.  to you as a linkable object later this fall. We are still adding features
  558.  to it. Look in dev/c for it.
  559.  
  560. Credits
  561.  
  562.  WANT simply could not be written without including the code of many 
  563.  talented programmers who have bequeathed their work to the public domain.
  564.  Their selfless acts of generosity allow us to continue the tradition of
  565.  providing Free or Inexpensive Software to Amiga owners. Thanks to:
  566.  
  567.      Nico Francois for ReqTools
  568.      Jan van deen Baard for GadToolsBox
  569.      The GNU group for GCC 2.6.0 and all those great utilities
  570.      Chad Randall for Iconian
  571.      CDROM.COM for making the archives available
  572.      Fred Fish for the same darn thing!
  573.      Our many field testers including members of the San Diego
  574.      Area Amiga Users Group for their invaluable ideas 
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.   want.guide converted by
  582.   Guide2Doc 1.0 (02-Nov-1993) FreeWare - © Koessi
  583.