claude-code - 💡(How to fix) Fix [BUG] Ctrl+G does not open plan in external editor during plan acceptance on Linux [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52512Fetched 2026-04-24 06:05:12
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

When Claude Code is in plan mode and presents the plan for acceptance, pressing Ctrl+G should open the plan in $EDITOR for review. This works correctly on macOS but does nothing on Linux.

Root Cause

When Claude Code is in plan mode and presents the plan for acceptance, pressing Ctrl+G should open the plan in $EDITOR for review. This works correctly on macOS but does nothing on Linux.

RAW_BUFFERClick to expand / collapse

Description

When Claude Code is in plan mode and presents the plan for acceptance, pressing Ctrl+G should open the plan in $EDITOR for review. This works correctly on macOS but does nothing on Linux.

Steps to reproduce

  1. Start Claude Code on Linux
  2. Enter plan mode (e.g. /plan)
  3. Give a task that generates a plan
  4. When the plan is presented for acceptance (the confirmation dialog), press Ctrl+G
  5. Nothing happens — the plan does not open in $EDITOR

Expected behavior

Ctrl+G should open the plan file in $EDITOR (same behavior as on macOS).

Actual behavior

Ctrl+G is silently ignored in the plan acceptance dialog on Linux. It works fine in the chat input context on the same machine.

Platform comparison

ContextmacOSLinux
Chat input (Ctrl+G)WorksWorks
Plan acceptance (Ctrl+G)WorksDoes not work

Environment

  • Claude Code version: 2.1.117
  • OS: Arch Linux (rolling), kernel 6.19.13-arch1-1
  • Terminal: kitty (xterm-kitty)
  • Shell: bash
  • Hardware: ThinkPad

The same user confirms Ctrl+G works in both contexts on their macOS machine.

extent analysis

TL;DR

The issue might be related to a platform-specific shortcut handling difference between macOS and Linux, requiring a potential fix or workaround in Claude Code's keyboard shortcut handling for Linux.

Guidance

  • Verify that the $EDITOR environment variable is set and accessible within the context of Claude Code on Linux.
  • Check if there are any Linux-specific keyboard shortcut configurations or overrides in Claude Code that might interfere with Ctrl+G.
  • Test if using a different keyboard shortcut for opening the plan in $EDITOR works as expected on Linux.
  • Investigate if the issue is specific to the terminal emulator (kitty) or shell (bash) being used.

Example

No specific code example can be provided without more details on Claude Code's internal implementation.

Notes

The solution may depend on the specifics of how Claude Code handles keyboard shortcuts and interacts with the operating system and terminal environment. Further investigation into Claude Code's documentation or source code may be necessary.

Recommendation

Apply workaround: Since the issue seems to be platform-specific and related to shortcut handling, applying a workaround such as using a different shortcut or configuring Linux-specific settings in Claude Code might be the most straightforward approach until a proper fix is available.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Ctrl+G should open the plan file in $EDITOR (same behavior as on macOS).

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Ctrl+G does not open plan in external editor during plan acceptance on Linux [1 participants]