Closed ayazhafiz closed 4 years ago
Happy to submit a patch; I tried looking for an executable
alternative for full commands but could find none. Perhaps the best option is to revert the behavior. For now a workaround is to alias open -a Preview
.
Thanks for the report. It's been very difficult for me to find a MacOS machine and test the issue. Feel free to submit a patch.
Expected behavior
Be able to start a live preview with the
Preview
application on Mac by settinglet g:livepreview_previewer='open -a Preview'
.Actual behavior
This no longer works and the plugin reports the error "Neither the explicitly set livepreview_engine NOR the defaults are executable". This is because prior to #99, explicitly-set engines were not checked to be executable commands; in #99, this check was added for default and explicitly set engines:
https://github.com/xuhdev/vim-latex-live-preview/blob/32d1a911641e08c11b3f82ba886540cbae0b7513/plugin/latexlivepreview.vim#L271-L275
This doesn't work for
open -a Preview
because it is not a single executable command; onlyopen
is an executable in this case.Steps to reproduce
Tell us how it occurs
let g:livepreview_previewer='open -a Preview'
System configuration