Closed
Labels
Description
I already use BBEdit on OS X, and would prefer to continue doing so. Is there a way I can add it in as my default editor? I can open files into it from the command line and it works fine as a git commit editor, as I have this setup in my ~/.profile :
#editor
EDITOR='/usr/local/bin/bbedit'
export EDITOR
If Github Desktop were to look for my existing editor in my environment variables.. that would be too easy ;-)
Could I add in the command line option to edit files using BBEdit in a config file somewhere? or, as a simpler alternative, if I could select a file (usually in History..) then invoke a menu item (Under Repository, for example) to show the file itself in the Finder, instead of the repo, that would resolve my issue.
Version
Github Desktop 0.8.0
macOS 10.12.6
Reacted by Grant Hutchinson
Activity
shiftkey commentedon Aug 17, 2017
@theconsultant currently the "Open in External Editor" experience is focused on Atom, VS Code and Sublime Text. These were chosen because they are cross-platform and have a known CLI interface that Desktop can invoke. We don't use the
GIT_EDITORorEDITORenvironment variables because those are focused on editing a file, rather than opening a folder.I'm not opposed to integrating new editors, I just haven't had a chance to think about how to handle editors that don't quite fit the existing infrastructure (see #2484 for example).
Please read over the
editor-integration.mddocs as a starting point.theconsultant commentedon Aug 17, 2017
Thanks @shiftkey .. is the beta using a different system than the classic github desktop app? Because in the desktop version I can go into history, right click a file and choose "open with external editor" which does invoke my
EDITORenvironment.I've read that Technical Doc.. i'd guess some digging to understand the shim/cli interface would be useful, but not for the main project. Is there any further docs, or files, I can look at to see how it works?
Thanks for your help, much appreciated!
shiftkey commentedon Aug 17, 2017
@theconsultant the new app isn't currently using
EDITORfor opening a changed file - it's using Electron'sopenItemAPI, which defers to what the OS has registered for the file extension. This behaviour isn't set in stone, and is probably something we should discuss further.cc @desktop/core
shiftkey commentedon Aug 31, 2017
Support for Notepad++ (Windows-only) has been requested over in #2551 and while I thought it didn't support opening a folder like VSCode/Atom/Sublime do I see this is currently the case.
[-]Use editors other than Atom?[/-][+]Support more editors[/+]Ben3eeE commentedon Sep 13, 2017
A portable mode installation of Atom is currently not supported.
This came up in #2585 (comment)
IdanAdar commentedon Sep 23, 2017
<blasphemy>I'd love to put WebStorm in the list of editors...</blasphemy>[-]Support more editors[/-][+]Support more external editors[/+]shiftkey commentedon Sep 27, 2017
The development version of Atom doesn't add itself to the registry, and thus won't be detected by Desktop - #2894
shiftkey commentedon Oct 16, 2017
A request for Typora - #3015
shiftkey commentedon Oct 16, 2017
A request for Brackets - #3041
shiftkey commentedon Oct 24, 2017
Hey all, we've made some progress here with supporting external editors in #3038. You can also see the latest documentation about this here:
docs/technical/editor-integration.mdWe'll continue to move requests for supporting different editors into this thread rather than adding them to our roadmap for a couple of reasons:
The setup guide should help ensure you have everything you need to run the development version of Desktop and get hacking - you can run the app in development mode alongside with your existing Desktop installation.
If you stumble upon a problem or have a question about the integration itself, feel free to comment here. It's easy to either update the docs or fix the core integration, if that's what's required.
shiftkey commentedon Oct 24, 2017
A request for Visual Studio 2017: #3148
theconsultant commentedon Oct 25, 2017
Thanks to @NiklasBr there's a PR in progress for BBEdit.. #2941
coyoteconscious commentedon Nov 27, 2017
How about making any editor available as an external, with the caveat that not all editors will have access to all features? I've been using the same editor for twenty years, and use it literally for everything (and have extensive clippings libraries and other custom stuff I use with it), but the only option I get for an external editor is Atom? Not cool.
j-f1 commentedon Nov 27, 2017
@coyoteconscious The challenge with supporting any editor is that we have to be able to figure out how to tell it to open a directory, which is hard or impossible to autodetect. What editor are you using?
haacked commentedon Nov 28, 2017
Rather than autodetect that, starting with a manual configuration with placeholders would make sense. That way Desktop could support any editor by telling Desktop exactly how to open a file or directory.
shiftkey commentedon Nov 28, 2017
I'm 👎 on this for a few reasons:
First, there's three variables that we need to track as part of launching an external program (these are the variables for shells, editors might be easier but I'm assuming worst-case complexity):
cwdorshell, others do not)Second: we didn't have any sort of support for supporting arbitrary editors in the classic apps. We should be mindful about providing an escape hatch like this, because users do get attached to features once they ship.
Third: we've already had some success with editor and shell support from the community - getting things merged into core means all users gets the benefits, rather than every user having to manage settings themselves.
Fourth: this would deviate from what our shell integration supports - do we then let people configure that?
haacked commentedon Nov 28, 2017
Fair points. 😄
simoniz0r commentedon Dec 17, 2017
IMO, the user should be able to choose any editor. GitHubDesktop could provide something like
%sfor the filename/directory that would be opened so that the user could add the necessary arguments to their editor to have the file/directory be opened.Having a custom input box for the editor where I could enter something like
/usr/bin/code -r %swould be great!:EDIT: Also, for what it's worth, pretty much all Linux editors support being invoked from the command line, so that should not be an issue here.
gtraxx commentedon Mar 21, 2018
Hi, PHPSTORM is available in the list with Windows 10 ?
agisilaos commentedon Mar 21, 2018
Hello @gtraxx! PhpStorm is not currently supported in Github Desktop for Windows. If you're considering adding this integration in Github Desktop for Windows, take a look at the Editor Integration Doc. The team will be more than happy to review your PR and help you with your contribution.
Let me know if you have any other questions.
iAmWillShepherd commentedon Mar 22, 2018
@gtraxx, a list of supported editors for Windows can be found here. As @agisilaos said, if you'd like support for PHPStorm to be added, feel free to open a PR or open a new issue for it so someone from the community can tackle it. Instructions are also in the link above.