Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected full completion on TAB #705

Open
nunojsa opened this issue Mar 19, 2024 · 0 comments
Open

Unexpected full completion on TAB #705

nunojsa opened this issue Mar 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nunojsa
Copy link

nunojsa commented Mar 19, 2024

I'm not really sure this is an issue or intended behavior but (at least to me) is really not what I would expect on a completion. Just with the following (no other plugins):

source .zsh/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh
zstyle ':autocomplete:*complete*:*' insert-unambiguous yes
zstyle ':completion:*:*' matcher-list 'm:{[:lower:]-}={[:upper:]_}' '+r:|[.]=**'

And having the next output:

ls zynq-zc706
file
zynq-zc706-adv7511-ad6676-fmc.dts                       zynq-zc706-adv7511-ad9081.dts
zynq-zc706-adv7511-ad9081-np12.dts                      zynq-zc706-adv7511-ad9082.dts
zynq-zc706-adv7511-ad9136-fmc-ebz.dts                   zynq-zc706-adv7511-ad9172-fmc-ebz.dts
zynq-zc706-adv7511-ad9265-fmc-125ebz.dts                zynq-zc706-adv7511-ad9361-4-fmcomms2-3-4-userspace.dts
zynq-zc706-adv7511-ad9361-fmcomms2-3.dts                zynq-zc706-adv7511-ad9361-fmcomms5.dts
zynq-zc706-adv7511-ad9361-fmcomms5-ext-lo-adf5355.dts   zynq-zc706-adv7511-ad9361-fmcomms5-userspace.dts
zynq-zc706-adv7511-ad9364-fmcomms4.dts                  zynq-zc706-adv7511-ad9434-fmc-500ebz.dts
(MORE)

Where zynq-zc706-adv7511- is the common prefix, pressing tab will fully complete to the first result which is a bit annoying and not the default behavior of zsh AFAICT. It looks like this depends on the display size somehow. If I increase my window, making $LINES bigger then I could see the expected behavior (not in the above particular case because even fullscreen does not work - due to the amount of files with the same common prefix I guess). So, is this expected? And if so, any way to configure it otherwise?

@nunojsa nunojsa added the bug Something isn't working label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant