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

Cannot open URL under cursor correctly if it is in single quote or parenteses #167

Open
phongnh opened this issue Jul 24, 2024 · 0 comments

Comments

@phongnh
Copy link

phongnh commented Jul 24, 2024

Hi,

This issue happened when opening url under cursor if url is in single quote or parentheses, step to reproduce as follows:

nmap go <Plug>(openbrowser-smart-search)
" Or
" nmap go <Plug>(openbrowser-open)
" Or you can use go or gx or any key you want

Case 1:

Plug 'https://git.sr.ht/~ackyshake/VimCompletesMe.vim'

Place cursor under url, then press above mapping go, it is opening https://git.sr.ht/~ackyshake/VimCompletesMe.vim' in browser

Case 2

('https://git.sr.ht/~ackyshake/VimCompletesMe.vim')

Place cursor under url, then press above mapping go, it is opening https://git.sr.ht/~ackyshake/VimCompletesMe.vim') in browser

If I replace ' with " in both above cases, it can open url correctly. It is quite strange.

Case 3

(https://git.sr.ht/~ackyshake/VimCompletesMe.vim)

Place cursor under url, then press above mapping go, it is opening https://git.sr.ht/~ackyshake/VimCompletesMe.vim) in browser.
I also tested with [] and {}, it works correctly.

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

1 participant