Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkdx gx is not opening urls in external application #195

Open
2 of 6 tasks
raveensrk opened this issue Oct 5, 2023 · 1 comment
Open
2 of 6 tasks

mkdx gx is not opening urls in external application #195

raveensrk opened this issue Oct 5, 2023 · 1 comment
Assignees

Comments

@raveensrk
Copy link

raveensrk commented Oct 5, 2023

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

@SidOfc
Copy link
Owner

SidOfc commented Oct 6, 2023

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

@SidOfc SidOfc self-assigned this Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants