-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Add support for custom shells/editors #18954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@tsvetilian-ty it seems I made a mistake with I will fix it, thank you again, nice catch! 🙏 |
Co-Authored-By: Tsvetilian Yankov <9341546+tsvetilian-ty@users.noreply.github.com>
…ustom editor is selected
Co-Authored-By: Tsvetilian Yankov <9341546+tsvetilian-ty@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨ This is amazing work!
Since you already added the suggested next editor bit ✨, my only thought while using it was that the menu items that say "Open in External Editor" or "Open in Shell" should say "Open in Custom Editor" and "Open in Custom Shell" for a higher signal that I am using what I set up or just so I know what I am going to open. Even better let users provide a reference name like we do for provided editors (I know.. that form is already too crowded.. :/ but I think it would make the experience a bit nicer). If you think this is worth exploring, it would just make a nice iteration (not a must have for this PR)
I will take a look in a different PR, but it sounds good, thank you!! |
How would one know what variables are available? |
That would depend on the editor, but you would want to look at their documentation. For instance, Unity has a list of arguments available: https://docs.unity3d.com/Manual/EditorCommandLineArguments.html |
My question is more if GitHub Desktop got the ability to Hove more variables than the path? |
https://github.com/desktop/desktop/pull/18954#issue-2402771183/mairo1504@gmail.com |
Closes #5083
Closes https://github.com/github/desktop/issues/830
Description
This PR adds support for custom editors and shells. This feature allows users to select a custom editor or shell to open repositories in. The user can choose from a list of predefined editors and shells or specify a custom editor or shell. The user can also specify command line arguments to pass to the custom editor or shell when opening a repository.
In order to parse command line arguments following Windows rules, this PR includes a new internal/private node addon which uses the Windows
CommandLineToArgvW
API, while the addonstring-to-argv
is used for the same purpose on UNIX-based systems.In an upcoming PR, we will revisit how and when changes in preferences are validated: both when switching to a different section in preferences and when clicking on the
Save
button.Until then, these changes are feature flagged to
development
builds only.Screenshots
Release notes
Notes: [New] Add support for custom editors and shells