[FEATURE] optional feature/config for "copy on select"
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
I often need to copy out commands from claude's output to paste into another place. I want to be able to copy them simply by highlighting the text (like in OpenCode) and for newlines from softwrapping to not show up as actual newlines in the copied text.
Proposed Solution
In OpenCode there is a feature where when you highlight text in the TUI from agent output, it automatically copies it, and also copies it without any softwrap showing up as newlines (related to this issue: https://github.com/anthropics/claude-code/issues/22073), so it can easily be pasted into another place.
I love this feature and would appreciate if it were added to Claude Code (possibly as a configurable option that could be turned on or off for those who want it)
Alternative Solutions
_No response_
Priority
Critical - Blocking my work
Feature Category
Interactive mode (TUI)
Use Case Example
I am using Claude Code to generate bash that I will execute in another terminal or server -- I want to copy the text out of Claude Code in a seamless and easy way so I can paste it into another terminal. I want to take one command at a time and not /copy the whole previous output.
Additional Context
_No response_
This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗