Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helix buffer becomes unresponsive/slow on paste operation #1484

Closed
matthias-kuklinski opened this issue Jan 12, 2022 · 2 comments
Closed

Helix buffer becomes unresponsive/slow on paste operation #1484

matthias-kuklinski opened this issue Jan 12, 2022 · 2 comments
Labels
C-bug Category: This is a bug R-duplicate Duplicated issue: please refer to the linked issue

Comments

@matthias-kuklinski
Copy link

Reproduction steps

Copying the content of README.md from my system's clipboard into a helix buffer through CTRL+SHIFT+V results in the following:

asciicast

Issues:

  1. The content is (visually) inserted line by line. As a result pasting larger content results in a slow and unresponsive operation, as any input by the user seems to be ignored until the content is fully pasted into the helix buffer.
  2. User action is required as can be seen in the asciinema-clip: on line 37 and 73 I had to press a key in order to let helix proceed. I pressed the ESC key. I tried pressing other keys, such as j, which were literally appended to the pasted content.

Environment

  • Platform: Sway (Wayland) on Arch Linux
  • Helix version: helix v0.6.0
  • Helix log: empty
@matthias-kuklinski matthias-kuklinski added the C-bug Category: This is a bug label Jan 12, 2022
@kirawi
Copy link
Member

kirawi commented Jan 12, 2022

Duplicate of #1021

@kirawi kirawi marked this as a duplicate of #1021 Jan 12, 2022
@kirawi kirawi closed this as completed Jan 12, 2022
@kirawi kirawi added the R-duplicate Duplicated issue: please refer to the linked issue label Jan 12, 2022
@kirawi
Copy link
Member

kirawi commented Jan 12, 2022

I'm guessing you're pasting in insert mode via ctrl-v instead of space-p in normal mode. We currently don't have bracketed paste support because crossterm doesn't support it yet (crossterm-rs/crossterm#557), so without that pressing ctrl-v literally works as if you typed out the pasted text character by character.

Originally posted by @archseer in #1021 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

2 participants