jeffreytse / zsh-vi-mode

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

Question: Does it support "redo? #272

Closed zzJinux closed 4 months ago

zzJinux commented 6 months ago

General information

The README has a "Redo" feature, but I can't find how to do it or any code involved.

Thank you for the awesome plugin and devotion.

Basic examination

Problem description

Reproduction steps

1. 2. 3.

Expected behavior

GiorgosXou commented 5 months ago

It's vi-mode, you can CTRL+R to "redo", wdym? https://github.com/jeffreytse/zsh-vi-mode/blob/287efa19ec492b2f24bb93d1f4eaac3049743a63/zsh-vi-mode.zsh#L3471

do you mean "repeat"?

zzJinux commented 5 months ago

@GiorgosXou Is history-incremental-search-backward considered "redo" in this plugin? I expect CTRL+R to do the exact opposite of u.

Please let me know if I'm wrong.

GiorgosXou commented 5 months ago

Is history-incremental-search-backward considered "redo" in this plugin?

Yes.

I expect CTRL+R to do the exact opposite of u.

It does the exact opposite. In which case\scenario it doesn't?

GiorgosXou commented 5 months ago

@zzJinux If your issue was resolved, please close it.

zzJinux commented 4 months ago

@GiorgosXou I'm embarrassed to find that CTRL+R triggers fzf in my shell. After disabling fzf, CTRL+R turned out to behave as intended. Sorry for my carelessness!