Repository navigation
Copy long lines without newlines #6815
|
if I view a log file (in less in tmux in Ghostty), and I copy a line that less has broken into multiple lines, I get text with newlines, which makes copying long text from Ghostty harder than from for instance Terminal.app, which seems to differentiate new lines added to break long lines, and new lines elsewhere in the text somehow. |
Replies: 1 comment
I can't think of any robust way to do this. When you pipe it into |
I can't think of any robust way to do this. When you pipe it into
less, Ghostty doesn't know whether it should have been hard-wrapped or soft-wrapped. It just knows “there's this line, and the next line”. If you hadn't piped it intoless, Ghostty would then know which was soft-wrapped since it manages the text, notless.