Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Limiting height of completion menu
- X-seq: zsh-users 26235
- From: Vincent Bernat <bernat@xxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Limiting height of completion menu
- Date: Sat, 19 Dec 2020 19:53:41 +0100
- Archived-at: <https://zsh.org/users/26235>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-12/m3tushaaq2.fsf%40luffy.cx>
- Authentication-results: zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=luffy.cx header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=pass header.from=luffy.cx; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=luffy.cx; h=from :to:subject:date:message-id:mime-version:content-type; s=fm2; bh=ttL7B9aTCfb9N/cIsy1cLjXTbQoWSFHGJcjY9S3Zhv8=; b=EzIz+I9w/Mye 7xbsFDmOsXuYnomBh+pd4cJs7PsdD7T7PCrhy+cixpNqG1T59NnrZqCA31xwd9dF JhltTnMrs8v3/zc6Neg0JqtE0IEpL2ne3EdQORfm9CqfK1WXq8WMkS+VHuW4r1/s HEfSoglluRR1QnAsNjQBONIij/DeMJU7lE+6kczacNZeYj0sgKOqdV+YRbuVtWXX aa+uBac52m1KBZJTR+EoqUEc3TrkraQdr2Hi0eJ3uLyI3RubTsKbOvYOOdRWmP3U elHII7bVBrKGjltgt5fnP/MbHb9ImYPULMMxrQlbCQu6PqauNgmETF5FcmrHOQHF UDKe5epwAA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=ttL7B9aTCfb9N/cIsy1cLjXTbQoWS FHGJcjY9S3Zhv8=; b=hTbDqyQvqrTTzKq6Yh1QO3yPNAnG9O101bPGg6mOOZ3AD 4TUA4y+HXH8fQ87tVe40Kn1QQMgFAQUcxYNNkQ1+dkZpiNOyBcAo9PTVtWzg7Bmr yma8i3E7thZKG/7gIIJ06ttTZzxcffQgiN9Ca52WGTIyvZzZm6e0rhztkkcPzDSf KSz0I38W7PlLO8GoJoLtxWvHgg5Gl2mqTTBKm8fNJL3FfjlNiKrjk/k/L8EhAs+D v6/n2gRtaA0XKDEpdcjHRCfFylj+gsd2jxEMH9hGmMPwj259QQyR4NrQeLa84QvS fd/jZTHmDrpxi0EtPLKbPENyNgJXyifnKUOhXUc6A==
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- Sender: zsh-users-request@xxxxxxx
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"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author