ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.77k stars 879 forks source link

zsh paste issue #2048

Open ChaosLights opened 1 year ago

ChaosLights commented 1 year ago

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.

  1. 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? }

pastefinish() { zle -N self-insert $OLD_SELF_INSERT } zstyle :bracketed-paste-magic paste-init pasteinit zstyle :bracketed-paste-magic paste-finish pastefinish

  1. Adding : “zstyle ':bracketed-paste-magic' active-widgets '.self-*'.” to .zshrv

  2. 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!

Poocunt commented 1 year ago

Ask chatgpt