Closed robrobbins closed 13 years ago
Yes, at least one of them should be executable, otherwise you get this message.
If you are using different browser you can set another value to g:PreviewBrowsers
.
If it doesn't help and you want to dig into the code please see Preview#show_with
method in autoload/preview.vim
# TODO: handle errors when app can't be opened
def show_with(app_type)
path = tmp_write(yield)
app = get_apps_by_type(app_type).find{|app| system("which #{app} 2>1 1> /dev/null")}
if app
fork{exec "#{app} #{path} 2>1 1> /dev/null"}
else
error "any of apllications you specified in #{OPTIONS[app_type_to_opt(app_type)]} are not available"
end
end
closed.
I get the fallback error message about the preview apps not being available. Being that the preview apps are input as strings 'google-chrome, safari' etc... Do these need to be aliased to the actual executable? I'll go through the source tomorrow, I haven't yet.