jeffreytse / zsh-vi-mode

💻 A better and friendly vi(vim) mode plugin for ZSH.
MIT License
3.31k stars 113 forks source link

Special ZVM_VI_ESCAPE_BINDKEY charactors pressed but not added after timeout #262

Open uduse opened 10 months ago

uduse commented 10 months ago

General information

Basic examination

Problem description

Setting the escape keys to ,, somehow doesn't print after timeout.

Diagnosis

Escape with jk

  1. set export ZVM_VI_INSERT_ESCAPE_BINDKEY=jk
  2. press jk in terminal
  3. escaped
  4. go insert again
  5. press j in terminal
  6. wait for a sec
  7. j printed to the screen

Escape with ,,

  1. set export ZVM_VI_INSERT_ESCAPE_BINDKEY=,,
  2. press ,, in terminal
  3. escaped
  4. go insert again
  5. press , in terminal
  6. wait for a sec
  7. nothings shows up

Escape with ,,, but a different read key engine

  1. set export ZVM_VI_INSERT_ESCAPE_BINDKEY=,,
  2. also set export ZVM_READKEY_ENGINE=$ZVM_READKEY_ENGINE_ZLE
  3. press ,, in terminal
  4. escaped
  5. go insert again
  6. press , in terminal
  7. wait for a sec
  8. , printed to the screen