A workaround for wrapped copy-paste in Tmux #5798
amimof
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been having issues copy-pasting in Tmux. The problem is that wrapped lines of text are pasted from clipboard with linebreaks. See this issue for more information #4706. I wasn't able to comment in the issue since it's closed. I apologize if this is the wrong place for this kind of information but I feel that I need to share my workaround for this.
Essentially what I did was to create a key mapping for
super+c
(I'm on Mac) to emit an event. Then I listen for that event which extracts the selected text and removes any line breaks before committing it back to clipboard.Hope this helps. Cheers
Beta Was this translation helpful? Give feedback.
All reactions