jeffreytse / zsh-vi-mode

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

Incremental history preview #135

Open avorima opened 2 years ago

avorima commented 2 years ago

General information

Basic examination

Problem description

/ does not show results incrementally.

Reproduction steps

  1. Use / and compare it to using CTRL-r without ZVM

Expected behavior

I would expect / to behave like CTRL-r or as if incsearch was enabled in ViM or at least provide a config option to enable that behaviour.

jeffreytse commented 2 years ago

Hi @avorima

Thanks for your issue, I will work on this issue as soon as possible.

Thanks and Regards

redpublic commented 2 years ago

How can you iterate over multiple matching results in case of / search? In case with CTRL-r search you can do:

It seems it could be related how the fix should be implemented.

Btw, do you need a hand with the fix?

scresante commented 2 years ago

What worked for me was simply sourcing https://github.com/joshskidmore/zsh-fzf-history-search after sourcing zvm.

I use a stripped-down version of zvm, so YMMV.