ish-app / ish-app/ish

zsh paste issue

Open
#2,048 1 comment 1 reaction 0 assignees View on GitHub
unconfirmed
Dominant language
C
Stars
20.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

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

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

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the slow long-string paste in iSH with the reported zsh configuration snippets in .zshrv. Compare the behavior with the listed bracketed-paste-magic and ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE settings, then determine whether the issue is in iSH or zsh. Done means documenting a confirmed cause and supported resolution, or establishing that no repository change is indicated.

Written by the indexing model from the issue text.

Assessment

Tech stack
zsh
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.