Open jdhao opened 5 years ago
I couldn't reproduce this on macOS. If this problem still persists, please tell me
@tyru This problem still persists. Version info:
Minimal step to reproduce:
init.vim
with the following minimal setting:set runtimepath=C:\Users\Administrator\AppData\Local\nvim-data\plugged\open-browser.vim,$VIMRUNTIME
nmap ob <Plug>(openbrowser-smart-search)
test.md
with the above URL. The content in test.md
:http://rrc.cvc.uab.es/?ch=2&com=tasks#WordRecognition
test.md
with the following command:nvim -u init.vim test.md
ob
.Result: only http://rrc.cvc.uab.es/?ch=2
is opened in the browser.
BTW: my default browser is Chrome. I am not sure if this is relevant.
It seems that it is a problem with Windows system, not related to this plugin. If we run the following following command directly from the command line:
chrome.exe http://rrc.cvc.uab.es/?ch=2&com=tasks#WordRecognition
The same issue occurs. According to here, &
has special meanings on Windows. We have to quote the whole URL or use ^
to escape special characters. Both the following two commands works:
chrome.exe "http://rrc.cvc.uab.es/?ch=2&com=tasks#WordRecognition"
chrome.exe http://rrc.cvc.uab.es/?ch=2^&com=tasks#WordRecognition
Thanks for the info. I'll look into this.
Hi, this is a great plugin which works both on Windows and Mac. I have found that for some URL, only part of the URL is opened in the browser. For example, for URL
http://rrc.cvc.uab.es/?ch=2&com=tasks#WordRecognition
, when I use this plugin to open it in the browser, onlyhttp://rrc.cvc.uab.es/?ch=2
is opened.