View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Update of /cvsroot/dqsd/dqsd/searches
In directory usw-pr-cvs1:/tmp/cvs-serv29525/searches

Modified Files:
        multi.xml 
Log Message:
multi - added ability to specify different arguments to different searches and allow , 
in arguments

Index: multi.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/searches/multi.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** multi.xml   30 Aug 2002 03:24:56 -0000      1.7
--- multi.xml   15 Oct 2002 14:35:08 -0000      1.8
***************
*** 3,6 ****
--- 3,10 ----
    <description>
      Perform multiple searches with a single command line expression.<br/>
+     <b><i>superMultiModeEnabled</i></b> can be set to true in localprefs.js to 
+enable super multi mode which allows different sets of 
+          searches to be done (ie: multi search1 /firstParam; search2 search3 
+/secondParam)<br/>
+      <b><i>superMultiModeSepChar</i></b> can be set to a character in localprefs.js 
+to determine the split character for the super multi mode
+          the default value is ;
      <div class="helpboxDescLabels">Usage:</div>
      <table class="helpboxDescTable">
***************
*** 9,13 ****
      <div class="helpboxDescLabels">Example:</div>
      <table class="helpboxDescTable">
!       <tr><td>multi av gg wood planes</td></tr>
      </table>
    </description>
--- 13,18 ----
      <div class="helpboxDescLabels">Example:</div>
      <table class="helpboxDescTable">
!       <tr><td>multi av gg wood planes</td><td> - </td><td>Display the search results 
for wood planes on altavista and google.</td></tr>
!       <tr><td>multi fm;sf hs /new</td><td> - </td><td>Display the new projects and 
files on freshmeat, sourceforge, and hotscripts provided superMultiModeEnabled is set 
to true in localprefs.js.</td></tr>
      </table>
    </description>
***************
*** 16,19 ****
--- 21,25 ----
    
    <script><![CDATA[
+ 
      // This function is almost identical to the shortcut function in search.html
      function multiIsCommand(t)
***************
*** 90,95 ****
        if ( nullArgs("multi", q) )
          return false;
!       else
!         if (result = q.split( /[,\s]+/ ) )
          {
  
--- 96,118 ----
        if ( nullArgs("multi", q) )
          return false;
! 
!       var multiCmdSets = new Array();
!       var mySuperMultiModeEnabled =  (typeof superMultiModeEnabled != "undefined" && 
superMultiModeEnabled != "");
!       var mySuperSepChar = (typeof superMultiModeSepChar != "undefined" && 
superMultiModeSepChar != "") ? superMultiModeSepChar : ";";
!       if (mySuperMultiModeEnabled == true)
!       {
!       var myCmds = q.split(mySuperSepChar);
!         for (var i=0; i < myCmds.length; i++)
!       {
!          var oneCmd = myCmds[i];
!          multiCmdSets[i] = oneCmd;   
!         }
!       } else {
!         multiCmdSets.push(q);
!       }
! 
!       for (var m=0; m < multiCmdSets.length; m++)
!       {
!         if (result = (multiCmdSets[m]).split( /[\s]+/ ) )
          {
  
***************
*** 141,148 ****
                  performsearch(arrCmds[j - 1], arrParams.join(" "));
              }
-             return true;
            }
          }
        }
    ]]></script>
  
--- 164,171 ----
                  performsearch(arrCmds[j - 1], arrParams.join(" "));
              }
            }
          }
        }
+     }
    ]]></script>
  




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Reply via email to