Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[BUG] `menu-complete` bound to `^J` does not cycle the results with `select`



Hello!

I'd like to report a bug with ^J bind to menu-complete with select option.

Thank you,
Myk

Steps to reproduce

  1. Copy the minimal config to .zshrc
  2. Double check that ^J is only bound to menu-complete
    bindkey | grep '\^J'
  3. Type cd , press CTRL+O multiple times to cycle suggestions - Completes the directory name and cycles to next suggestion, works as expected
  4. Type cd , press CTRL+J multiple times to cycle suggestions - Behaves exactly as CTRL+O, works as expected
  5. Add select option to completion by running
    zstyle ':completion:*' menu select
  6. Type cd , press CTRL+O multiple times to cycle suggestions - Still cycles, works as expected
  7. Type cd , press CTRL+J multiple times to cycle suggestions - Only selects the first suggestion, does not cycle, does not work as expected

Things I tried

  • Different keys - only reproducible with ^J: ^O, ^N and ^I work as expected
  • Different binds - happens with menu-complete, complete-word, expand-or-complete, menu-expand-or-complete, and reverse-menu-complete
  • Different completion configuration - happens only with select
  • Different OS and terminals - happens both in Nix and Arch with Konsole and Alacritty

Minimal config

autoload -U compinit

zstyle ':completion:*' menu

bindkey '^J' menu-complete
bindkey '^O' menu-complete

compinit


Messages sorted by: Reverse Date, Date, Thread, Author