Allow people to not use textmate in the unlikely event that they use something else ;)

This commit is contained in:
Adam Sanderson 2010-08-16 21:12:33 -07:00
parent 2787a16a9f
commit c09b5c7988
1 changed files with 3 additions and 2 deletions

View File

@ -62,8 +62,9 @@ module Qwandry
end
end
def launch(package)
`mate #{package.paths.join(' ')}`
def launch(package, editor=nil)
editor ||= ENV['VISUAL'] || ENV['EDITOR']
system editor, *package.paths
end
module_function :launch