vscode-gitlink icon indicating copy to clipboard operation
vscode-gitlink copied to clipboard

Regex replace setting

Open boycce opened this issue 2 years ago • 0 comments

Can we add a setting which allows us to perform a custom regex replace on the URL before opening/coping? E.g.

'https://bitbucket.org-company1/company1/web-project/index.js'.replace(/bitbucket.org-company1/, 'bitbucket.org')

E.g.

This is helpful when working for different organisations and using different git-remote hostnames per project. This is so I can pass the correct private key from my ~/.ssh/config

# Personal repositories
Host bitbucket.org
   HostName bitbucket.org
   IdentityFile ~/.ssh/personal_key

# Company repositories
Host bitbucket.org-company1
   HostName bitbucket.org
   IdentityFile ~/.ssh/company1_key

boycce avatar Apr 05 '23 23:04 boycce