Closed linrongbin16 closed 1 year ago
After read lua/gitlinker/git
module, I found it use many /
to match the git link and file path. It should be a big effort if we want to support windows.
We can also refer to urlview.nvim's open in browser implementation
As mentioned in #75 , open link in windows is not supported for now. I add detection for windows, and use
explorer
command to open url. Please see: https://stackoverflow.com/a/23039509/4438921Manually tested:
As showed in picture, the browser is opened correctly. But the url is actually wrong. In Windows, the path separator is
\
instead of/
.Any way this command should be good.