ben-gibson / GitLink

A Jetbrains plugin that opens a local file under Git version control in its remote host using the default browser.
https://plugins.jetbrains.com/plugin/8183-gitlink
MIT License
671 stars 58 forks source link

Autodetect platform using domain regex #243

Closed reda-alaoui closed 1 year ago

reda-alaoui commented 1 year ago

Platforms like Bitbucket Server and Gerrit do not have a predefined domain as github.com . Because of that, the plugin never autodetects these kinds of platform on new cloned projects.

It would be nice to be able to provide a domain regex for such platforms.

For example, for Gerrit platform, the domain regex .*gerrit.* would allow to match gerrit.mycompany.com thus would free mycompany’s users from manually choosing Gerrit as their platform for each mycompany cloned project.