You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When readkey engine set to ZVM_READKEY_ENGINE_NEX, current default engine, pasting in insert mode takes forever to finish. At first I thought it was zsh-vi-mode conflict with fast-syntax-highlighting, zsh-autosuggestions and zsh-history-substring-search. But after some trial and errors it turns out that the culprit is ZVM_READKEY_ENGINE_NEX
Changing ZVM_READKEY_ENGINE=$ZVM_READKEY_ENGINE_ZLE temporarily fixed the issue.
This issue only happens on macOS. On Arch Linux there isn't such issue when I use the same .zshrc
Here's an excerpt from my .zshrc
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
ZSH_AUTOSUGGEST_IGNORE_WIDGETS+=(backward-kill-word kill-word)
source /opt/homebrew/opt/zsh-fast-syntax-highlighting/share/zsh-fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
source /opt/homebrew/share/zsh-history-substring-search/zsh-history-substring-search.zsh
function zvm_config() {
ZVM_LINE_INIT_MODE=$ZVM_MODE_INSERT
ZVM_VI_INSERT_ESCAPE_BINDKEY=jj
ZVM_VI_VISUAL_ESCAPE_BINDKEY=jj
ZVM_READKEY_ENGINE=$ZVM_READKEY_ENGINE_DEFAULT
ZVM_INIT_MODE=sourcing
}
source $(brew --prefix)/opt/zsh-vi-mode/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
autoload -Uz is-at-least
if [[ ${ZSH_VERSION} != 5.1.1 && ${TERM} != "dumb" ]]; then
if is-at-least 5.2; then
autoload -Uz bracketed-paste-url-magic
zle -N bracketed-paste bracketed-paste-url-magic
elif is-at-least 5.1; then
autoload -Uz bracketed-paste-magic
zle -N bracketed-paste bracketed-paste-magic
fi
autoload -Uz url-quote-magic
zle -N self-insert url-quote-magic
fi
Reproduction steps
Open zsh and enter insert mode
Paste a long line such as curl request
Wait until paste finishes
Expected behavior
Immediately finished paste on ZVM_READKEY_ENGINE_NEX just like on Arch Linux
The text was updated successfully, but these errors were encountered:
General information
Basic examination
Problem description
When readkey engine set to ZVM_READKEY_ENGINE_NEX, current default engine, pasting in insert mode takes forever to finish. At first I thought it was zsh-vi-mode conflict with fast-syntax-highlighting, zsh-autosuggestions and zsh-history-substring-search. But after some trial and errors it turns out that the culprit is ZVM_READKEY_ENGINE_NEX
Changing
ZVM_READKEY_ENGINE=$ZVM_READKEY_ENGINE_ZLE
temporarily fixed the issue.This issue only happens on macOS. On Arch Linux there isn't such issue when I use the same .zshrc
Here's an excerpt from my .zshrc
Reproduction steps
Expected behavior
Immediately finished paste on ZVM_READKEY_ENGINE_NEX just like on Arch Linux
The text was updated successfully, but these errors were encountered: