Is there a way to make files opened for editing in the terminal open in Textedit instead?
For example, where a command might open a file for editing (like git
git
For Sublime Text 3:
defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.3;}'
See Set TextMate as the default text editor on Mac OS X for details.