Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Very slow paste with `zsh-autosuggestions` enabled #1276
I believe this is because Hyper sends each character of a pasted string individually, whereas iTerm must be sending the whole string at once.
Fixing delays on zsh-autosuggestions is, of course, necessary to do, but on the other hand, I believe https://github.com/zsh-users/zsh/blob/master/Functions/Zle/bracketed-paste-magic could be of great help here. In fact, I've experienced the same issue with Midnight Commander for a really long time. I described my unsuccessful hacking attempts here: zsh-users/zsh-autosuggestions#136 (comment). Maybe similar technique could be employed here?
EDIT: Just for the reference, mc's issue: https://midnight-commander.org/ticket/2072#comment:21
I commented the following lines, but you can remove it or change the if condition.