Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github desktop open in sublime, not atom

In GitHub Desktop, is there any way to change the right click "Open in Atom" option, to instead be "Open in Sublime" or some other text editor?

enter image description here

Thanks!

like image 908
tnrich Avatar asked Jan 06 '16 07:01

tnrich


2 Answers

New answer for GitHub Desktop (Electron)

They finally added an option in the Preferences:

preferences

Old answer for GitHub App Classic (Native)

GitHub looks for /Applications/Atom.app when clicking on "Open in Atom", so you just need to rename your editor to Atom.app, or...

Create a dummy app that opens Sublime. You can download the app that I made with Automator or make one yourself:

  1. In Automator, select Application
  2. Add the action Run Shell Script
  3. Select As arguments in the Pass input dropdown
  4. Enter this: /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl "$@"
  5. Save it as Atom in the Applications folder.

Expected Automator file

Now "Open in Atom" should simply "Open in Sublime Text"

like image 87
fregante Avatar answered Sep 20 '22 02:09

fregante


You can't, as it seems to be a part of app's menu. However, you can set your default editor in global config like

git config --global core.editor "subl -n -w"

For more, refer Associating text editors with Git

like image 30
Let'sRefactor Avatar answered Sep 21 '22 02:09

Let'sRefactor