Zsh-autosuggestions: paste slow with oh-my-zsh

Created on 29 Sep 2017  路  7Comments  路  Source: zsh-users/zsh-autosuggestions

reproduce steps:

  1. zsh -f
  2. source $ZSH/oh-my-zsh.sh
  3. source .oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
  4. paste
432222222222222222
43666666666666666666
658777777777777777
3455555555555555
5466666666666666666666
123333333333333333333
432222222222222222
43666666666666666666
658777777777777777
3455555555555555
5466666666666666666666

and char appears slowly one by one.

Use zsh-autosuggestions singly, this problem won't appear, the whole textarea appears immediately.

duplicate

Most helpful comment

All 7 comments

See #141, #219, #238. Consider upgrading to zsh 5.4 or disabling bracketed-paste-magic.

Thanks.
Now I use v5.4, but problem still exists unless I use zstyle ':bracketed-paste-magic' active-widgets '.self-*'.
I see comment, it said that I don't need this statement after v0.2.7, but I am in v0.4.0 now. So do I misunderstand?

That comment was referring to a slightly different issue, where bracketed-paste-magic would cause the shell to hang entirely. #238 is also reporting that 5.4 doesn't fully solve the issue. You may want to try one of the workarounds mentioned in that ticket. I'll re-open this ticket and dig into this a bit when I get some time.

Closing this. See the solution in #238: https://github.com/zsh-users/zsh-autosuggestions/issues/238#issuecomment-389324292

Yeah, this solution works too. I will use this. Thanks!

Thanks.
Now I use v5.4, but problem still exists unless I use zstyle ':bracketed-paste-magic' active-widgets '.self-*'.
I see comment, it said that I don't need this statement after v0.2.7, but I am in v0.4.0 now. So do I misunderstand?

Thanks this solved this very annoying issue, when pasting from clipboard it gets very slow almost to the point of a simulated typing. This solved for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mehedi-sharif picture mehedi-sharif  路  6Comments

moritzschaefer picture moritzschaefer  路  5Comments

srajasimman picture srajasimman  路  5Comments

fgr0 picture fgr0  路  3Comments

OmeGak picture OmeGak  路  3Comments