Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (14 sloc) 548 Bytes
#!/usr/bin/env ruby -w
require ENV['TM_SUPPORT_PATH'] + "/lib/textmate"
require ENV['TM_SUPPORT_PATH'] + "/lib/ui"
require ENV['TM_SUPPORT_PATH'] + "/lib/exit_codes"
require ENV['TM_BUNDLE_PATH'] + "/Support/lib/wax/doc_set"
include Wax
word = TextMate::UI.request_string(:prompt => "Search documentation for...", :button1 => "Search" )
refs = DocSet.search(word)
if refs.empty?
TextMate::UI.tool_tip "No Documentation found for '#{word}'."
else
TextMate::UI.tool_tip "No Documentation found for '#{word}'."
DocSet.show_document(refs)
end
Something went wrong with that request. Please try again.