SidOfc / mkdx

A vim plugin that adds some nice extra's for working with markdown documents

Home Page:https://www.vim.org/scripts/script.php?script_id=5620

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mkdx gx is not opening urls in external application

raveensrk opened this issue · comments

OS type:

  • Unix
  • Windows
  • Macos

Vim:

  • vim
  • neovim
  • Other ([SPECIFY])

Vim version:
VIM - Vi IMproved 9.0

Reproduce steps:

Example:

  1. Open a markdown file.
  2. Paste the following example into the file:
# Test

[test](https://www.google.com/)
  1. Then, attempt to do gx in normal 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.

vim/vim#3314

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