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:

... 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/ 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
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,229 views 4 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