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 Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

274 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot