Does SourceTree have an Open With

When I click right on a file, I see "Open"but not and "Open With". Is it possible to add this to the menu?

1 answer

There's already a feature request: https://jira.atlassian.com/browse/SRCTREEWIN-875

... but Atlassian implemented it in a more generic way (at least in SourceTree for Windows):

  • In the context menu you find an entry: "Custom action". This can be used to call an external application with the given file
  • The custom action can be configured via "Tools->Options->Custom Actions" ...

Hope that helps ...

Thanks for teh response, but I don't see "Tools"

Are you using SourceTree on Windows or Mac?

I'm using SourceTree on Mac

The above solution is Windows-only. I use Windows as well, so I don't know if there is a solution on Mac.

On the Mac, if I go to "Actions->Custom Actions" the menu has no items, bummer.

You'd have to create the actions yourself. You'll need to know the command line arguments to launch a file into the software you want.

The command line would be open -a /Applications/TextWrangler.app myfile.txt but where do I put it, i.e., how do I create and action with this command line?

In windows, the Custom Actions window has an "Add" button. When I click that it has me give the action a name, specify the script, and specify the parameters. It lists the variables you can use in the parameters ($REPO, $FILE, and $SHA).

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

542 views 1 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you