Feature: add clipboard-copy-soft-wrap to preserve visual line breaks on copy
#12892
-
Feature request: make soft-wrap handling on copy configurableSummaryWhen copying a selection that spans soft-wrapped visual rows, Ghostty A new config option should let users opt into preserving soft-wrap line Repro
The same selection in iTerm2, Warp, or Wave pastes as multiple lines. Root causeIn var formatter: ScreenFormatter = .init(
self,
.{
.emit = .plain,
.unwrap = true, // <-- hard-coded
.trim = opts.trim,
},
);
Proposed solutionAdd a new top-level config option. Following Ghostty's existing When Suggested name and shape
Why not just always preserve visual rowsSome users rely on the current behavior:
Making it opt-in avoids breaking those workflows. Sketch of the change
DocumentationThe new option would live in
The existing Alternatives considered
Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
A bit of context for anyone landing here directly: I originally opened If the maintainers end up preferring a different option name, default, |
Beta Was this translation helpful? Give feedback.
-
|
We don't read AI generated discussions, if you don't proofread it yourself before posting, we won't either, and there's a duplicate request already: #12546 https://github.com/ghostty-org/ghostty/blob/main/AI_POLICY.md#there-are-humans-here |
Beta Was this translation helpful? Give feedback.
We don't read AI generated discussions, if you don't proofread it yourself before posting, we won't either, and there's a duplicate request already: #12546
https://github.com/ghostty-org/ghostty/blob/main/AI_POLICY.md#there-are-humans-here