vscode-gitlink
vscode-gitlink copied to clipboard
Regex replace setting
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