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

Re: Is it possible to limit the height or rows of menus?



On Sun, Apr 5, 2020 at 8:01 AM Dave Woodfall <dave@xxxxxxx> wrote:
>
> LINES=15 zle complete-word
>
> It seems to work so far.

This confuses ZLE a lot, as far as I can tell.  Try for example typing
^L to clear the screen, then do your completion, but instead of
accepting the result, back out of the menu and try to edit the command
line.

Currently the best thing here is to set LISTMAX or the corresponding
zstyle list_max, to avoid entering the menu if it is going to scroll
too far.

Limiting the number of rows occupied by a listing seems like something
that could be added, but it probably needs more care than simply
making a temporary change to the value of the internal zterm_lines
value, because the editor needs to know what the complist module has
done to the screen.



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