Hi, I installed oh-my-zsh and I find it too slow to paste a long string because zsh prints the string by one character every few ms. I have tried every existing methods and none of them works for me.
paste the following code in .zshrv
pasteinit() {
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]}
zle -N self-insert url-quote-magic # I wonder if you'd need .url-quote-magic?
}
Hi, I installed oh-my-zsh and I find it too slow to paste a long string because zsh prints the string by one character every few ms. I have tried every existing methods and none of them works for me.
pasteinit() { OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} zle -N self-insert url-quote-magic # I wonder if you'd need
.url-quote-magic
? }pastefinish() { zle -N self-insert $OLD_SELF_INSERT } zstyle :bracketed-paste-magic paste-init pasteinit zstyle :bracketed-paste-magic paste-finish pastefinish
Adding : “zstyle ':bracketed-paste-magic' active-widgets '.self-*'.” to .zshrv
Adding : “ ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE 20” to .zshrv
Unfortunately they doesn’t work for me. Could you please tell me what I should do to solve the problem? Thanks!