mkdx gx is not opening urls in external application
raveensrk opened this issue · 1 comments
raveensrk commented
OS type:
- Unix
- Windows
- Macos
Vim:
- vim
- neovim
- Other ([SPECIFY])
Vim version:
VIM - Vi IMproved 9.0
Reproduce steps:
Example:
- Open a markdown file.
- Paste the following example into the file:
# Test
[test](https://www.google.com/)
- Then, attempt to do
gx
innormal
mode.
Expected:
Opened the url in safari
Actual:
Vim runs wget and opens the url as a text file in vim.
This issue is not seen in visual select mode.
I think this might be a netrw issue as well. I am not sure.
SidOfc commented
Is gf_on_steroids enabled in your configuration? If not, then it's NetRW's behavior which seems incorrect.
mkdx uses open
if present or xdg-open
otherwise: https://github.com/SidOfc/mkdx/blob/master/autoload/mkdx.vim#L2273-L2277