marlonrichert / zsh-hist

📝 Edit your Zsh history from the command line.
MIT License
148 stars 13 forks source link

^Q unavailable in vi command mode #25

Closed cohml closed 4 months ago

cohml commented 9 months ago

Describe the bug

The README states that this plugin binds ^Q to an action, but it doesn't do so for vi command mode.

Steps To Reproduce

Source zsh-hist and enter emacs mode.

source zsh-hist.plugin.zsh
bindkey -e

Note that the ^Q yields the desired behavior.

Now enter vi mode.

bindkey -v

After ensuring you're in insert mode (press Esc and then i to be sure), note that ^Q works.

Now press Esc to enter command mode, and note that ^Q does NOT work.

Expected behavior

push-history is not Emacs/Vi/insert/command-related, so^Q should yield the same behavior across all modes by default.

Observed behavior

^Q works only in emacs mode and vi insert mode, not vi command mode.

Click to expand

Environment: