wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.26k stars 781 forks source link

Wrapped long line copy under tmux #4706

Closed piec closed 9 months ago

piec commented 10 months ago

First thank you for your work on wezterm which I find great and full of features.

Is your feature request related to a problem? Please describe. When using tmux in wezterm, wezterm interprets long wrapped lines as multiple lines (of terminal width length) instead of a single wrapped line. This means that:

Triple click in wezterm without tmux - OK: image Triple click (or [shift]+triple click if you use tmux with mouse support on) - BAD: image

image

I suppose it's related to how tmux renders these lines on screen and how wezterm interprets them. I have looked for options in tmux to configure its behavior related to newlines but didn't find anything.

Describe the solution you'd like Have the selection and copy-paste work the same when in tmux. Many terminals work as I expected with tmux (triple click and copy/paster): uxterm, gnome-terminal, alacritty.

Describe alternatives you've considered Use tmux copy/paste support with mouse, for example with https://github.com/tmux-plugins/tmux-yank. But it's not always practical.

Additional context

wez commented 9 months ago

tmux outputs several disconnected lines, so wezterm doesn't know that they are a single logical line. This will not be solved in wezterm.

Note that wezterm has native UI for tabs and panes and has many of the same features as tmux.

hrez commented 9 months ago

wezterm on windows and Mac with ssh to remote host does this, tmux (on the remote) or no tmux. Yet Windows Terminal or iTerm2 are copy/pasting a single line in the exact same conditions. For me that's a showstopper. I couldn't find how to configure wezterm to copy/paste wrapped line as a single line. That should be the default IMHO.

github-actions[bot] commented 8 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.