Skip to content

Conversation

Copy link

Copilot AI commented Dec 3, 2025

Adds the ability to open the current prompt in a system text editor during interactive mode, similar to Claude Code (Ctrl-G) and Gemini CLI (Ctrl-X).

Changes

  • New keyboard shortcut: Ctrl+X opens the current buffer in an external editor
  • Editor selection: Uses $VISUAL$EDITORvi (Unix) / notepad (Windows)
  • Terminal handling: Properly switches from raw mode to normal mode for the editor, then restores raw mode after
  • Help docs: Updated /? shortcuts to document the new binding

Implementation

  • cmd/cli/readline/editor.go / editor_windows.go: Platform-specific editor invocation
  • cmd/cli/readline/types.go: Added CharCtrlX = 24
  • cmd/cli/readline/readline.go: Handler for CharCtrlX that opens editor and replaces buffer with result

Usage

> type some text here, then press Ctrl+X
# Editor opens with "type some text here"
# Save and close editor
# Buffer now contains edited content

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cloud.google.com
    • Triggering command: /update-job-proxy /update-job-proxy (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy x64/pkg/tool/linux_amd64/compile (dns block)
  • dario.cat
    • Triggering command: /update-job-proxy /update-job-proxy (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy x64/pkg/tool/linux_amd64/compile (dns block)
  • go.googlesource.com
    • Triggering command: /update-job-proxy /update-job-proxy (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy x64/pkg/tool/linux_amd64/compile (dns block)
  • go.opentelemetry.io
    • Triggering command: /update-job-proxy /update-job-proxy (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy x64/pkg/tool/linux_amd64/compile (dns block)
  • go.uber.org
    • Triggering command: /update-job-proxy /update-job-proxy (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy x64/pkg/tool/linux_amd64/compile (dns block)
  • go.yaml.in
    • Triggering command: /update-job-proxy /update-job-proxy (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy x64/pkg/tool/linux_amd64/compile (dns block)
  • gonum.org
    • Triggering command: /update-job-proxy /update-job-proxy (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy x64/pkg/tool/linux_amd64/compile (dns block)
  • google.golang.org
    • Triggering command: /update-job-proxy /update-job-proxy (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy x64/pkg/tool/linux_amd64/compile (dns block)
  • gopkg.in
    • Triggering command: /update-job-proxy /update-job-proxy (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy x64/pkg/tool/linux_amd64/compile (dns block)
  • gotest.tools
    • Triggering command: /update-job-proxy /update-job-proxy (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy x64/pkg/tool/linux_amd64/compile (dns block)
  • howett.net
    • Triggering command: /update-job-proxy /update-job-proxy (dns block)
    • Triggering command: /update-job-proxy /update-job-proxy x64/pkg/tool/linux_amd64/compile (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Implement open prompt in system text editor</issue_title>
<issue_description>As seen in claude code via ctrl-g and gemini-cli via ctrl-x</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Implement open prompt in system text editor Implement open prompt in system text editor via Ctrl+X Dec 3, 2025
Copilot AI requested a review from ericcurtin December 3, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement open prompt in system text editor

2 participants