vim-markdown-composer
vim-markdown-composer copied to clipboard
Open with non-default browser on mac
Hi,
I use Firefox by default, but I'd like to open markdown renders in Safari. I've tried setting g:markdown_composer_browser to safari / Safari / Safari.app / /Applications/Safari.app / open /Applications/Safari.app / open -ga Safari.
Not sure how to set this up. Any help is appreciated! Thank you.
Hello, I just pushed a commit that fixes a bug in this setting and clarifies the documentation. You can set Safari as your custom browser with let g:markdown_composer_browser = 'open -ga Safari'.
Unfortunately I can't call this fixed yet, since it looks like Safari has trouble handling the IPV6 URIs produced by the plugin. I'm going to need to investigate more.
Thanks for the fix. Will watch this space for changes and post a fix if I find one which doesn't require changes.
On an unrelated note, macOS Catalina also has this annoyance where open -ga Safari opens a page in both Safari and Firefox (or default browser). Oh well! 🤷🏾♂️