def TextMate.file_link (file, line = 0) return "txmt://open/?url=file://" + $myPath + "/" + file.gsub(/[^a-zA-Z0-9.-\/]/) { |m| sprintf("%%%02X", m[0]) } + ".gtd&line=" + line.to_s end
def TextMate.file_link (file, line = 0)
return "txmt://open/?url=file://" + $myPath + "/" +
file.gsub(/[^a-zA-Z0-9.-\/]/) { |m| sprintf("%%%02X", m[0]) } +
".gtd&line=" + line.to_s
end