jeffreytse / zsh-vi-mode

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

`jk` escape sequence and custom widget key binding issues #214

Open volodymyrprokopyuk opened 1 year ago

volodymyrprokopyuk commented 1 year ago

General information

Basic examination

Problem description

Reproduction steps

  1. Use the provided below my zsh-vi-mode configuration
  2. For wide context my .zshrc is at https://github.com/volodymyrprokopyuk/dotfiles/blob/master/.zshrc
  3. The above described issues can be experimented

My zsh-vi-mode configuration

function zvm_config {
  ZVM_VI_ESCAPE_BINDKEY=jk
}
function zvm_after_init {
  fzf_config
}
function zvm_after_lazy_keybindings {
  zvm_bindkey vicmd '^[,' autosuggest-accept
  zvm_define_widget fzf_open_file
  zvm_bindkey vicmd '^o' fzf_open_file
}
zinit light jeffreytse/zsh-vi-mode

Expected behavior

The jk, Ctrl-o, and hopefully Alt-, and Ctrl-g in all modes should work.

Thank you very much for the great plugin! It is very useful!

jeffreytse commented 11 months ago

Hi @volodymyrprokopyuk

Sorry for the late reply, and thanks for your reporting. For the custom ZVM_ESCAPE_BINDKEY=jk, you can refer to #193. And the remaining issue, I will walk through them as soon as possible.

Thanks & Regards