Author Topic: Look up commit in remote repo (Bitbucket, Github, etc.)  (Read 3075 times)

kniped1

  • Community Member
  • Posts: 20
  • Hero Points: 1
Look up commit in remote repo (Bitbucket, Github, etc.)
« on: April 19, 2022, 06:13:10 PM »
I created a pair of macros that will lookup a selected commit hash in remote repo (Bitbucket in my case, but should work with others) using the web browser (Firefox in my case).

The first macro uses whatever is currently selected as the commit hash. The second hash selects the word that is located at the cursor. I wrote these to be executed from custom commands on the context menu. The first one is shown on the context menu that is shown when there is text selected, and the second one is shown on the context menu otherwise.

Before using this macro, you will need to configure the url to your project. You would also want to define which web browser to use if you want something other than Firefox. Your system path may also affect how you configure the web browser.