gitlinker.nvim icon indicating copy to clipboard operation
gitlinker.nvim copied to clipboard

Parse remote host from ssh config

Open joaodubas opened this issue 3 years ago • 2 comments

In some situations, a user can set a Host rule in ssh config, which defines an alias for a hostname. Such as:

Host example
    Hostname example.com
    User git
    IdentityFile ~/.ssh/gitea

The remote uri will look like: example:username/repository.git.

To avoid problems parsing the remote uri, an ssh module was created to set the proper hostname based on ssh config.

Closes #53

joaodubas avatar Feb 19 '22 23:02 joaodubas

I just tried out this fork because I have the same issue with ssh configurations. It works well.

danielfalk avatar Jun 26 '23 12:06 danielfalk

Any update on this?

guruor avatar Nov 12 '23 03:11 guruor