Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Limiting height of completion menu
- X-seq: zsh-users 26253
- From: Vincent Bernat <bernat@xxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Limiting height of completion menu
- Date: Mon, 21 Dec 2020 13:22:40 +0100
- Archived-at: <https://zsh.org/users/26253>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-12/m3y2hr8i27.fsf%40luffy.cx>
- Authentication-results: zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; 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
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=luffy.cx; h=from :to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type:content-transfer-encoding; s=fm2; bh= 48qXXbEFXatQNRTInvjQr6sox9+1G3ECtGcv3Zb+4yQ=; b=NYZI30PAx8Vj8AIm QGLLQIDDTVJ1kn8OP9AlxHyl+m+HtjiXrNIB6fQnZ1IhIsFEDROaR8Q27POKMNgd sU1XgqQXqwPWldt6WwZNm+1nGAHNo/1NOqWV6J8nICP1YwzsvYvNRMMs9DliJMSv 3BXpJARYD9s/MlulJz6TfW0BqySO4TxN6wMXz5tDbCJbR46nDHDbTY/Y/V5/yrnj gNL9m3s4FJmaFm9GwPmHbUnKAsXQorcsRPi251kyO3YYyfOAb+8N2cypYb/sy7QT +hXMKPNEk9r4j0jiZU1b291AqewoHGLFXHL7ptgOBplqjIDUHXUvUrhrIdkkiNSr hU3ITQ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=48qXXbEFXatQNRTInvjQr6sox9+1G3ECtGcv3Zb+4 yQ=; b=qnapwS6LKOUJfBy2R5InYXiZ3pPC2npWYiT8pe+3Yt73rWq4Vz7mp9NoD tuF6HjjZNZyJJYii8dsHqh9RO4HkiqfzhMmGDYMNVQHIJkprfY+IuzczTp/oJzn+ DQTPhomPhnCqcRQMzBgb8uwCbGfPlf0m1J8GM57rJftIMa8+OQAJ7MOuoUwMUBlg P0X5N/ylX1P9OwdLbI6mAFItT7LUZXHz6NwcjR00P0ck/DqZZhNv36sO5qK4Y6XM fZpD1rF8VgIeAZ8IbI4k48r3qnbG77INeufLb5HotFYvD/wxqr/dW6Np334ksGXr QPmvcmWcAjwTnEM+hqUgqo2Vw47nw==
- In-reply-to: <CAH+w=7bbCm+gG+unfnVtMonhdLSfbEQqjkr=sSRtXBzgqYq6vw@mail.gmail.com> (Bart Schaefer's message of "Sun, 20 Dec 2020 13:55:45 -0800")
- 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>
- References: <m3tushaaq2.fsf@luffy.cx> <CAH+w=7amMkiuWYHdmCemo5sH+YAADF_drF=iHJ7Wpypv_zGwoQ@mail.gmail.com> <m3lfdta330.fsf@luffy.cx> <CAH+w=7aT5+Tc8szJHu2mwAyEOvO0sQ2F3T0N3UMTmtpghU9UOg@mail.gmail.com> <m3h7oha1i8.fsf@luffy.cx> <CAH+w=7ZGhXHd0ua_AXBdOr1cJs4qrkd56JYiro3MaOErXLoHpg@mail.gmail.com> <20201220144154.mwftaxagutsaystn@chazelas.org> <CAH+w=7bbCm+gG+unfnVtMonhdLSfbEQqjkr=sSRtXBzgqYq6vw@mail.gmail.com>
- Sender: zsh-users-request@xxxxxxx
❦ 20 décembre 2020 13:55 -08, Bart Schaefer:
>> > half-lines () {
>> > print -n $(tput sc)
>>
>> Or if tput is to cover the cases where zsh/terminfo is not
>> included:
>>
>> tput sc
>
> That doesn't actually work as expected; for some reason running "tput"
> directly from the current shell causes a zle reset and the bug
> returns, probably due to some sort of handling of the forked job.
> Hiding it in a $(...) subshell prevents that (but the whole
> formulation still has other problems).
Some completions also reset the state. File completion is working but
for example, apt completion is resetting the state (maybe because there
is some fork involved to grab the information).
I may have better luck proposing a patch to Zsh to be able to have a
maximum height for the completion menu.
--
The lunatic, the lover, and the poet,
Are of imagination all compact...
-- Wm. Shakespeare, "A Midsummer Night's Dream"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author