-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Very slow paste with zsh-autosuggestions
enabled
#1276
Comments
Anyone have any ideas of how this can be done? From poking around it looks like the problem could be here https://github.com/zeit/hyper/blob/b4943a05e9a614d00f4bf7203e4146efa47d1adb/lib/hterm.js#L365
|
Quick note, on the standard terminal app on osx we have the same issue so I would say any time we use zsh-autosuggestions we are screwed and this is not a specific issue of hyper? |
oh, you're very right. I didn't think I ran into this in iTerm, but I also do there. |
zsh-users/zsh-autosuggestions#141 Seeing as this is an issue here, we can probably close this. |
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'm experiencing this and I'm fairly sure that I don't have |
I'm pretty sure this should be okay with the latest version! Please let us know if it's not fixed. |
echo $ZSH_VERSION still very slow when pasting a large string.... :( |
Same.
|
very slow when pasting a large string |
Same here. Excruciatingly slow while pasting long cURLs in zsh with zsh-autosuggestions enabled. |
I commented the following lines, but you can remove it or change the if condition. |
Seems that since some recent version the same workaround than the one suggested by @uv-w can be achieved by setting : |
works perfectly. Thank you @fredleger |
This worked for me: https://gist.github.com/magicdude4eva/2d4748f8ef3e6bf7b1591964c201c1ab |
Thanks @huwllewellyn, this fix worked for me. |
@uv-w's suggestion worked for me where |
you need to surround true with double quotes |
@adamdoescode @AmjadHussainSyed You don't need to manually add it; it's an option in the default. You just need to uncomment the following line in
|
My experience is that this does not work. I don't know why, but only the other solution proposed by @uv-w works for me. Interestingly, I've had this problem on both iTerm in MacOS and on Windows in WSL2 Terminal. |
What was the suggestion by @uv-w ? It seems like they removed it/changed their name. edit: I found something that worked for me
|
With
zsh-autosuggestions
enabled, pasting is very slow – I see each character appear, one character every few ms. The same applies to opening the config file withCmd+,
– I see each line of the message "typed" and then executed, over a period of about 2 seconds, before the file opens.Without
zsh-autosuggestions
I don't notice this, so obviously that software is partly to blame, but Hyper is also a factor here because pasting is instant in iTerm even withzsh-autosuggestions
.I believe this is because Hyper sends each character of a pasted string individually, whereas iTerm must be sending the whole string at once.
Hyper 1.0.0
Electron 1.4.7
darwin x64 15.6.0
The text was updated successfully, but these errors were encountered: