axieax / urlview.nvim

🔎 Neovim plugin for viewing all the URLs in a buffer
MIT License
231 stars 5 forks source link

Provide a way to customize the command to open URL #9

Closed mars90226 closed 2 years ago

mars90226 commented 2 years ago

First, thank you for this plugin!

I would like to ask for the feature to customize the command to open URL. Currently, it only use netrw or xdg-open (on Linux) to open URL. But users (like me) may want to use other command or vim command from other vim plugin to open it, like open-browser.vim.

Maybe you can provide a config to customize command or execute certain vim command if it exists? For example, vim-fugitive try to open URL by using :Browse or :OpenBrowser.

Thank you!

axieax commented 2 years ago

Hi, thanks for the suggestion! open-browser.vim seems to open the requested browser using a shell command (#7 added some defaults for that) and vim-fugitive seems to use netrw (which is used by this plugin by default). I can add a config option to specify a browser to open with (controls the shell command to open the url with).

mars90226 commented 2 years ago

Thank you! I'll try the new option.