On 14.06.2007, at 20:06, James Edward Gray II wrote:
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?
Err right. No idea what I did when I tried to get it working earlier :)
Thanks.
_______________________________________________
textmate-dev mailing list
textmate-dev@lists.macromates.com
http://lists.macromates.com/mailman/listinfo/textmate-dev