GitToolBox icon indicating copy to clipboard operation
GitToolBox copied to clipboard

[new feature] Copy / open reference as git url

Open gberche-orange opened this issue 4 years ago • 1 comments

  • As a gitoolbox user
  • in order to share url to files across repos (e.g. in documentation),
  • I would need to able to copy a file reference as a git url (e.g. https://github.com/orange-cloudfoundry/osb-cmdb-ci/blob/master/scripts/clean-at-cf-environment.sh or https://github.com/orange-cloudfoundry/osb-cmdb-ci/blob/128943c297947b6bc26f436f6cb3400593e0b5d5/scripts/clean-at-cf-environment.sh for a permalink in the example below)

Currently the "copy as toolbox url" seems to copy a reference across git project (jetbrains://idea/navigate/reference?project=osb-cmdb-ci&path=scripts/clean-at-cf-environment.sh in the example below) image

Workaround: use github plugin to open the file in a browser, and copy the url from the address bar

image

gberche-orange avatar May 13 '20 12:05 gberche-orange

There is also the GitLink plugin, which will add a Copy GitHub Link to the context (i.e. right click) menu as well as the menu bar's View menu.

ammmze avatar Mar 14 '22 19:03 ammmze

Done for Github and Bitbucket Cloud & Server with Open / Copy link to file (and line in file). Also includes back-navigation - will be available in pro version of plugin.

zielu avatar Dec 23 '22 09:12 zielu

Also includes back-navigation - will be available in pro version of plugin.

thanks @zielu ! Would you have a screenshot of back navigation available as a teaser ?

gberche-orange avatar Feb 15 '23 09:02 gberche-orange

@gberche-orange looks like this: https://github.com/zielu/GitToolBox/wiki/Manual#repository-links - I'll adding more repo types soon.

zielu avatar Feb 15 '23 10:02 zielu

Great feature !

gberche-orange avatar Feb 15 '23 13:02 gberche-orange