wez / wezterm

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

Bracketed paste not working in Helix #4236

Open chtenb opened 1 year ago

chtenb commented 1 year ago

What Operating System(s) are you seeing this problem on?

Windows

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20230828-220414-99c96139

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

I'm a little bit at a loss and I don't know what part of the software chain is "at fault". It seems weird to me that specifically this combination does not work.

To Reproduce

Use the newest Helix version and wezterm, open hx and paste a multi-line piece of text from the system clipboard in insert mode.

Configuration

no config

Expected Behavior

No response

Logs

Nothing in the debug logs

Anything else?

If you need me to try anything for debugging purposes, I'd be happy to. Perhaps the following links are relevant

wez commented 1 year ago

Please capture a terminal recording:

*** Finished recording to /var/tmp/wezterm-recording-sF6B3u.cast.txt

The file is an asciicast (compatible with https://asciinema.org/) and can also be replayed using wezterm replay.

The terminal recording allows me to replicate what is being sent to the terminal without requiring me to install the same applications as you and replicate your configuration for everything.

wez commented 1 year ago

A relevant configuration option is: https://wezfurlong.org/wezterm/config/lua/config/canonicalize_pasted_newlines.html However, it shouldn't affect things when bracketed paste is active.

Is helix a native win32 application, or are you running it via WSL? If the latter, consider trying to wezterm ssh into the WSL host to see if the issue is introduced by ConPTY.

chtenb commented 1 year ago

wezterm-recording-M06nrM.cast.txt

I didn't have much luck in recording, for some reason all kinds of escape sequences are inserted, which does not happen when not recording.

wez commented 1 year ago

Try turning off https://wezfurlong.org/wezterm/config/lua/config/allow_win32_input_mode.html ?

chtenb commented 1 year ago

That doesn't help unfortunately. (I added allow_win32_input_mode = false, to my config, and restarted wezterm).

chtenb commented 1 year ago

I tried recording with asciinema to see if that would make a difference, but asciinema appears to crash immediately on a module that is not available for windows :(

chtenb commented 1 year ago

EDIT: created separate issue, because probably unrelated https://github.com/wez/wezterm/issues/4255