Closed galkk closed 1 year ago
"Common substring" is not entirely accurate to describe what will be inserted. Rather, it's the longest input that would complete to all listed completion. If you can think of a better phrase to describe this, I'm all ears.
In any case, this is expected behavior in Zsh. See also https://github.com/marlonrichert/zsh-autocomplete/issues/602#issuecomment-1603103847.
In a directory with following files
% 1-minimal.sh 2-minimal-config.sh 3-full.sh 4-gui-fonts.sh 4-gui.sh 5-personal.sh 6-personal-gui.sh Dockerfile docker-compose.yml
when entered
./4-
, the zsh-autocomplete shows./4-gui.sh
as common substring, while I expect it to be truly common substring:./4-gui
.Issue reproduces with both my config (that has
zstyle ':autocomplete:*' insert-unambiguous yes
), and config in "steps to reproduce" sectionEnvironment
Operating system:
Terminal emulator:
Steps to reproduce
Contents of
~autocomplete-log/YYYY-MM-DD.log
(click to expand): file is empty