zsh-users
 help / color / mirror / code / Atom feed
* Limiting height of completion menu
@ 2020-12-19 18:53 Vincent Bernat
  2020-12-19 20:30 ` Bart Schaefer
  0 siblings, 1 reply; 13+ messages in thread
From: Vincent Bernat @ 2020-12-19 18:53 UTC (permalink / raw)
  To: zsh-users

Hey!

I was wondering if it would have been possible to limit the height of
the completion menu. I am using:

zstyle ':completion:*' menu yes=long select

Ideally, if the completion menu could not be more than half the screen,
it would be great, this way, I keep the top of the screen intact when
trying to complete. I have looked around in the source code, and it
seems the "long" option is hardcoding "LINES" to detect if it should
trigger the menu and in the C code, it uses zterm_lines to control how
the menu is displayed. But maybe it's possible to tell ZLE that LINES is
in fact half the real lines?

Thanks.
-- 
You may my glories and my state dispose,
But not my griefs; still am I king of those.
		-- William Shakespeare, "Richard II"


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-12-21 12:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-19 18:53 Limiting height of completion menu Vincent Bernat
2020-12-19 20:30 ` Bart Schaefer
2020-12-19 21:05   ` Vincent Bernat
2020-12-19 21:38   ` Vincent Bernat
2020-12-19 22:03     ` Bart Schaefer
2020-12-19 22:12       ` Vincent Bernat
2020-12-19 22:15         ` Bart Schaefer
2020-12-19 22:24           ` Vincent Bernat
2020-12-19 23:26             ` Bart Schaefer
2020-12-19 23:30               ` Vincent Bernat
2020-12-20 14:41           ` Stephane Chazelas
2020-12-20 21:55             ` Bart Schaefer
2020-12-21 12:22               ` Vincent Bernat

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).