change default open application in sourcetree

when I click on open in sourcetree it opens the file in default applicaiton associated with file extension however I want it to open in sublimetext editor, is there a way to configure this.

3 answers

1 accepted

This widget could not be displayed.

OSX can be finicky in this sometimes. The best thing to do is right click on the filetype you want to change, choose Open With and set the right app, and then click Change All... which makes it stick for all files with the same filetype.

this is the defualt behaviour , however I am looking for a config in sourcetreeapp which allows this to happen when app is opened via sourcetree.

'Open With' isn't available as an option right now. I have it on my list, but it's not implemented yet because in fact the new Mac App Store rules that Apple are introducing say you're not allowed to do it, and indeed the Sandbox blocks access to any 'open' command which specifies an app, rather than letting the Finder default take effect.

Our current opinion is that other issues with the Sandbox mean that we will probably stop updating the App Store once Apple require it, but they've pushed the deadline back a bit so we're waiting to see what they do. If it's still unworkable then we'll officially discount updating the app store anymore and then we'll be able to implement things like this.

Any news on this?

For html files, I also would like to have an 'Open with' or 'Edit' menu option to start up an editor, whereas the reguler 'Open' action would indeed open a browser in order to preview the file in case.

I've logged this here: https://jira.atlassian.com/browse/SRCTREE-1168 - while we're now not planning to play by the App Store rules any more, adding anything new that we know is frowned upon by Apple will have to be weighed up.

This widget could not be displayed.

Any status on this issue

This widget could not be displayed.

I'll share an update on how to solve this problem. Sourcetree seems to use OSX's default app config so its just a matter of right clicking a file and choosing Get info (cmd+i) and finding the Open with section.

NOTE:

The previous accepted solution where you right click the file and choose Open with will not set default app for all instances of filetype. It will only apply to the selected file. 

Suggest an answer

Log in or Sign up to answer
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...

888 views 2 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