-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Support $env:EDITOR being a .bat/.cmd script on Windows #1882
Copy link
Copy link
Open
Labels
area:platform-windowsWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows TerminalWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows Terminal
Description
Describe the feature or problem you'd like to solve
I would like to use an external editor via Ctrl-G. My external editor is opened via a wrapper Batch script
Proposed solution
Support external editors that are started via Batch (.bat/.cmd) scripts on Windows.
Example prompts or workflows
$env:EDITOR='my-editor.cmd'
copilot
# When Copilot launches, press Ctrl-G to edit the prompt in the external editorAdditional context
Today, GitHub Copilot CLI does not support your external editor being a Batch (.bat/.cmd) script. If your $env:EDITOR is something like "my-editor.cmd", pressing Ctrl-G fails with "Error: spawn EINVAL".
If $env:EDITOR is an executable, it works fine.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:platform-windowsWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows TerminalWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows Terminal
Type
Fields
Give feedbackNo fields configured for Feature.