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
end end
def launch(package) def launch(package, editor=nil)
`mate #{package.paths.join(' ')}` editor ||= ENV['VISUAL'] || ENV['EDITOR']
system editor, *package.paths
end end
module_function :launch module_function :launch