#7018: Looking for trees with search_doc("tree") is a bad idea
-----------------------------+----------------------------------------------
   Reporter:  ncohen         |       Owner:  tba         
       Type:  defect         |      Status:  needs_review
   Priority:  minor          |   Milestone:  sage-4.3.2  
  Component:  documentation  |    Keywords:              
     Author:  John Palmieri  |    Upstream:  N/A         
   Reviewer:                 |      Merged:              
Work_issues:                 |  
-----------------------------+----------------------------------------------
Changes (by newvalueoldvalue):

 * cc: ddrake (added)
  * status:  new => needs_review
  * upstream:  => N/A
  * milestone:  sage-4.3.1 => sage-4.3.2
  * author:  => John Palmieri


Comment:

 Here is a patch.  This implements two new keywords for searching, one of
 which addresses the issue in this ticket.  These work for
 {{{search_src}}}, {{{search_doc}}}, and {{{search_def}}}.

  - You can now do {{{search_doc('tree', whole_word=True)}}}, and it will
 look for 'tree' as a whole word, not returning matches for 'toctree' or
 'trees'.

  - You can now do {{{search_src('TreE', ignore_case=True)}}}, and it will
 return matches for 'TREE', 'Tree', 'tree', etc., completely ignoring case.
 (By default, all searches continue to be case-sensitive, so
 {{{search_src('TreE')}}} returns no matches.)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7018#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB
-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to