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

paste slow with oh-my-zsh #276

Closed
zyf0330 opened this issue Sep 29, 2017 · 7 comments
Closed

paste slow with oh-my-zsh #276

zyf0330 opened this issue Sep 29, 2017 · 7 comments

Comments

@zyf0330
Copy link

zyf0330 commented Sep 29, 2017

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
123333333333333333333
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.

@ericfreese
Copy link
Member

ericfreese commented Sep 29, 2017

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

@zyf0330
Copy link
Author

zyf0330 commented Sep 30, 2017

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?

@ericfreese
Copy link
Member

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.

@ericfreese ericfreese reopened this Sep 30, 2017
@ericfreese
Copy link
Member

Closing this. See the solution in #238: #238 (comment)

@zyf0330
Copy link
Author

zyf0330 commented May 24, 2018

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

@krishna81m
Copy link

This worked for me: https://gist.github.com/magicdude4eva/2d4748f8ef3e6bf7b1591964c201c1ab

@rodhash
Copy link

rodhash commented Nov 29, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants