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

Custom escape keys breaks CTRL-r history search

Open redpublic opened this issue 3 years ago • 0 comments

General information

Custom escape keys breaks CTRL-r history search.

  • Terminal program: iTerm2 3.4.12
  • Operating system: macOS Big Sur 11.6
  • ZSH framework: oh-my-zsh
  • ZSH version: 5.8
  • ZVM version: last master

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

If you redefine ZVM_VI_INSERT_ESCAPE_BINDKEY, it's not possible to enter first character of escape key in CTRL-r history search. You exit the search mode.

Reproduction steps

  1. Redefine with ZVM_VI_INSERT_ESCAPE_BINDKEY=fd
  2. Enter history search mode with CTRL-r
  3. Enter f character
  4. Search mode is cancelled, f is inserted in command line

Expected behavior

CTRL-r history search works as usually

redpublic avatar Nov 29 '21 20:11 redpublic