claude-code - 💡(How to fix) Fix Allow expanding collapsed multi-line paste in input prompt [1 comments, 2 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#48829Fetched 2026-04-16 06:49:47
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Author
Timeline (top)
labeled ×2commented ×1

Fix Action

Fix / Workaround

Current workaround

RAW_BUFFERClick to expand / collapse

Request

When pasting multi-line text into the Claude Code prompt, it collapses to [Pasted text #N +M lines]. There's no way to expand this inline to see or edit the pasted content before submitting.

Use case

During interactive workflows (e.g., editing a draft Slack message), users paste multi-line replacement text and want to verify it looks correct before pressing Enter. Currently the only option is to blindly submit or use an external editor.

Suggested implementation

  • Click or keybinding (e.g., Ctrl+P or Tab) to toggle between collapsed and expanded view of pasted text
  • Or show the first 3-5 lines with a "show more" indicator

Current workaround

Ctrl+E to open in $EDITOR, but this doesn't appear to work in all environments (e.g., cmux terminal).

extent analysis

TL;DR

Implement a toggle or preview feature to expand collapsed pasted multi-line text in the Claude Code prompt.

Guidance

  • Consider adding a click or keybinding (e.g., Ctrl+P or Tab) to toggle between collapsed and expanded views of pasted text.
  • Showing the first 3-5 lines with a "show more" indicator could be a viable alternative.
  • Investigate why Ctrl+E to open in $EDITOR doesn't work in all environments (e.g., cmux terminal) to improve the current workaround.
  • Evaluate the feasibility of integrating an inline editor or preview pane to enhance user experience.

Example

No code snippet is provided as the issue focuses on feature implementation rather than code correction.

Notes

The solution may require adjustments based on the specific environment (e.g., cmux terminal) and the $EDITOR variable's behavior.

Recommendation

Apply a workaround, such as implementing a toggle or preview feature, as it directly addresses the user's need to verify pasted content before submission.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING