marlonrichert / zsh-autocomplete

🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.
MIT License
5.38k stars 148 forks source link

Auto complete on the first tab if even it's ambiguous #764

Open SangTruongTan opened 1 week ago

SangTruongTan commented 1 week ago

Environment

% typeset -p1 VENDOR OSTYPE ZSH_PATCHLEVEL _autocomplete__funcfiletrace
typeset VENDOR=apple
export OSTYPE=darwin24.0
typeset ZSH_PATCHLEVEL=zsh-5.9-0-g73d3173
typeset -a _autocomplete__funcfiletrace=(
  /opt/homebrew/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh:4
  /Users/myuser/.zshrc:57
  zsh:0
)
% git -C ~autocomplete log --oneline -n1
824efa8836 (HEAD -> stable, tag: 4.4.4) Merge pull request #18704 from Homebrew/ubuntu-run

Steps to reproduce

% cd $(mktemp -d)
% mkdir something1
% mkdir something2
# When type "cd" and hit "tab", it will auto-complete entire in the first time even it's ambiguous.
% cd something1/

I'm wondering if I can disable that feature or not. It's really annoying to me. I tested it and show the same behavior on Linux. Sometime, it makes faults when I type the path very fast.