zsh-vi-mode icon indicating copy to clipboard operation
zsh-vi-mode copied to clipboard

terminating key sequences are slow/shouldn't wait for timeout

Open crides opened this issue 1 year ago • 2 comments

General information

  • Terminal program: termux
  • Operating system: Android
  • ZSH framework: oh-my-zsh
  • ZSH version: 5.9
  • ZVM version: commit 2f68ea9

Basic examination

  • [x] I have read through the README page
  • [X] I have the latest version of zsh-vi-mode
  • [ ] I have tested with another terminal program

Problem description

Deterministic accepting key sequences like cc is slow

Reproduction steps

  1. type some garbage
  2. press escape
  3. type cc

Expected behavior

  • See the vi mode indicator turn back to normal immediately, or
  • pressing any key immediately afterwards should be echoed on the repl

crides avatar Apr 15 '23 01:04 crides

Hi @crides

May I know the actual speed on your environment, in other words how slow in ms?

Thanks & Regards

jeffreytse avatar Apr 18 '23 06:04 jeffreytse

0.8s according to asciinema

See the time after the 2 c's and new output zvm.cast.txt

crides avatar Apr 18 '23 09:04 crides