zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.81k stars 1.85k forks source link

ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE not being used #626

Closed rwmitchell closed 3 years ago

rwmitchell commented 3 years ago

Describe the bug

I have a short terminal window. Entering commands get interrupted with "do you wish to all all N possibilities".

To Reproduce

Steps to reproduce the behavior:

Create a short (6 rows) terminal window

type:

     export ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=2
     alias[SPACE]

zsh prompts with: zsh: do you wish to see all 194 possibilities (23 lines)?

Expected behavior

Ideally I'd like to never see that prompt. If the screen size allows the information to be displayed, just display it. If it doesn't, indicate there are more options that can be displayed, but do not eat any input characters as that ruins the flow of what is b being typed.

An ideal solution would then allow a special keystroke to display all possibilities.

ericfreese commented 3 years ago

I think you might be confusing this plugin with the standard tab completion that zsh offers. This plugin doesn't control whether you do or don't see results when pressing tab or otherwise activating the zsh completion features.

You'll want to look at documentation for zsh completion rather than this plugin. You might like the behavior you get by setting LISTPROMPT=''. See https://zsh.sourceforge.io/Doc/Release/Zsh-Modules.html#Scrolling-in-completion-listings

rwmitchell commented 3 years ago

you are so right, the plugin is actually zsh-autocomplete causing this.