[SVN] r7518 (Ruby)
    James Edward Gray II 
    james at grayproductions.net
       
    Thu Jun 14 18:06:09 UTC 2007
    
    
  
On Jun 14, 2007, at 12:50 PM, Soryu wrote:
> On 14.06.2007, at 02:45, James Edward Gray II wrote:
>
>> On Jun 13, 2007, at 5:38 PM, Soryu wrote:
>>
>>>> • History for initial term is still broken if it was ambiguous
>>>
>>> If you could help me on that one, James.
>>> I could not figure out the unambiguous term.
>>
>> I'm happy to help.  Can you describe what you need?  You just need  
>> to know which term was selected from the menu?
>
> right. I only seem to be able to get the original term.
In this method from the source:
def ri(term)
   documentation = `#{e_sh LINKED_RI} '#{term}' 'js' 2>&1` \
                   rescue "<h1>ri Command Error.</h1>"
   if documentation =~ /Nothing known about /
     TextMate.exit_show_tool_tip(documentation)
   elsif documentation.sub!(/\A>>\s*/, "")
     choices = documentation.split
     choice  = TextMate::UI.menu(choices)
     exit if choice.nil?
     ri(choices[choice])
   else
     documentation
   end
end
Whenever the recursion takes the else branch, term is set to the  
matched selection.
Does that help?
James Edward Gray II
    
    
More information about the textmate-dev
mailing list