axieax / urlview.nvim

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

Add windows support #41

Closed lopi-py closed 1 year ago

lopi-py commented 1 year ago

Minimal plugin but useful! I was researching if there is a command for opening a url on windows and I found start. eg: start https://github.com. this will open that url with the system's default browser

axieax commented 1 year ago

Hi this would be a great addition to the plugin! I was planning on adding this (as part of the roadmap), but am not sure about how it’ll work with WSL1 and WSL2 (don’t have an environment to test it on). Feel free to create a PR if you want, or I can just add in the Windows case for now!

lopi-py commented 1 year ago

I think on wsl it will detect as linux, but I'm going to try now

lopi-py commented 1 year ago

It works on wsl, it use xdg-open, I don't have a "linux native" environment so I don't know it that is expected or it's wsl stuff(which I'm pretty sure it is) but I'm getting a little delay(terminal freezing) when using it

I'll create a PR in a bit

Edit: yeah it's wsl stuff, I was testing and it freeze even out of neovim