ruanyl / vim-gh-line

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

Handle custom domain origins #45

Closed gegoune closed 2 years ago

gegoune commented 3 years ago

Is it possible to map origin domains that were mapped to those set up in ssh config with:

Host custom-domain
  Hostname     github.com

with origin being:

origin  git@custom-domain:user/repo.git (fetch)

Thanks.

williamspatrick commented 2 years ago

I did this ugly hack for mine:

let g:gh_open_command = 'fn() { echo "$@" | sed "s#ssh://openbmc.gerrit#https://github.com#" | xargs xdg-open }; fn '
gegoune commented 2 years ago

Ah, old issue. I have since written functions in to handle all my use cases. I am not using this plugin so will close it, if @ruanyl thinks it's worth keeping it open, feel free to reopen.

Thanks @williamspatrick though!