Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Limiting height of completion menu
- X-seq: zsh-users 26245
- From: Vincent Bernat <bernat@xxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Limiting height of completion menu
- Date: Sun, 20 Dec 2020 00:30:36 +0100
- Archived-at: <https://zsh.org/users/26245>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-12/87ft41bcgz.fsf%40luffy.cx>
- Authentication-results: zsh.org; iprev=pass (out2-smtp.messagingengine.com) smtp.remote-ip=66.111.4.26; 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= YOQXiRv4o0PnjRGaymKgVza3OEqNeC+kChjgGYq+KhE=; b=Xi0sh4PHXDvEp8Ao oh1pVcUtRiJuR/KQa1jF+OrDqrqjlk+bzbKkIt3mDHC9ul/9uxhH/uFonBoUXImI oKonVbazwCUwQjrcAl7YfBB3r6dIiRlr5cg7e0I9Yrf5s2wr/jwvbup8U7DGroiq ZyTUPVGJdnqrVf5d0++tidgkxiCbBDoI9BmrkcwjvdzbfKWFeV2Od9bLPPZCFmTT utzqc9/4rdHnEZJ3gjORt/CTP7rqVMpNxwX2cFyEmW4kCncNOTGLe0lq/wtuVwDO XSDUIpjHXJMEG/1czGoxN2IvFDm4iuQ7EE5par5lbAHfHX/hHNMV4jssrO02wM+5 TN++3g==
- 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=YOQXiRv4o0PnjRGaymKgVza3OEqNeC+kChjgGYq+K hE=; b=k/3xO7hDMTHVmBxy1FVdJVCZSMWF6vShdAcfi/ZOsxpbuJCpnQdPDHn9h o5W+KILn28H9J0XAXLRW8FUL03EPqdQ8Q5R9dfwg2hUW+t6wPD3lQt2xRfloGEq2 goHUPdGVPXpOu3F8s8Cn+5NLd/ykoZU1UFyUIy1+PvxK35NingaLJ7MCZpTh376m I+6bZ1Ce8DW6jhrYpvHomEh48s0DKBdAEKpkiHXTmNOGdDeVxFXgnwl6OiRaVa6B SoD0ec8X7lOWmRitd55yH1yhTNoe5168BR0z5fkYVkE7vz07Nr1324HKkvH6f1uX jBRNVg0MN09Ri16YagPQBiz0n/+xw==
- In-reply-to: <CAH+w=7YcnCRhgvz=ytQ9Wp4tfqu7+W+_Wtr=f20R71HPJrCu3w@mail.gmail.com> (Bart Schaefer's message of "Sat, 19 Dec 2020 15:26:09 -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> <m3a6u9a0yq.fsf@luffy.cx> <CAH+w=7YcnCRhgvz=ytQ9Wp4tfqu7+W+_Wtr=f20R71HPJrCu3w@mail.gmail.com>
- Sender: zsh-users-request@xxxxxxx
❦ 19 décembre 2020 15:26 -08, Bart Schaefer:
>> It doesn't seem to fix the garbled non-select completion.
>
> Fooey.
>
>> This simpler solution seems to work
>
> Yes, obviously I was trying to avoid having it go outside completion scope.
>
> I think having $((LINES/2)) both in line-init and in the zstyle is
> going to result in "menu yes=" with a value of your actual lines
> divided by four, but maybe that's what you intended.
Oh, right! I can just use yes=long.
--
Don't use conditional branches as a substitute for a logical expression.
- The Elements of Programming Style (Kernighan & Plauger)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author