ruanyl / vim-gh-line

vim plugin that open the link of current line on github
MIT License
408 stars 37 forks source link

cgit operations don't work with zsh #52

Open williamspatrick opened 2 years ago

williamspatrick commented 2 years ago

A generated cgit URL would have a question mark in it, which is treated by zsh as a match character by default.

$ xdg-open https://git.qemu.org/git/qemu.git/tree/COPYING.LIB?id=89f3bfa3265554d1d591ee4d7f1197b6e3397e84#n36
zsh: no matches found: https://git.qemu.org/git/qemu.git/tree/COPYING.LIB?id=89f3bfa3265554d1d591ee4d7f1197b6e3397e84#n36

I've worked around this by doing:

let g:gh_open_command = 'unsetopt nomatch; xdg-open '