Allow people to not use textmate in the unlikely event that they use something else ;)
This commit is contained in:
parent
2787a16a9f
commit
c09b5c7988
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue