From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 1552 invoked from network); 5 Apr 2020 18:29:52 -0000 Received-SPF: pass (primenet.com.au: domain of zsh.org designates 203.24.36.2 as permitted sender) receiver=inbox.vuxu.org; client-ip=203.24.36.2 envelope-from= Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with UTF8ESMTPZ; 5 Apr 2020 18:29:52 -0000 Received: (qmail 3472 invoked by alias); 5 Apr 2020 18:29:42 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24744 Received: (qmail 27793 invoked by uid 1010); 5 Apr 2020 18:29:42 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi1-f170.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25772. spamassassin: 3.4.4. Clear:RC:0(209.85.167.170):SA:0(-1.9/5.0):. Processed in 1.748228 secs); 05 Apr 2020 18:29:42 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.167.170 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=WnUS0exJ3HSG9aqAAb5CM+xwrlpXTYndlCdXC28zq9Q=; b=lj1k5/qO0gVlg+Sl5orBw5kTGRyVBBEfi6U5gdfrct4v5TXN7Lzae/q86pJiUFDNeZ oMWjtb98c3NqpQEBeAfd3/rCh3BpnQMBxK2JA1Qld8gomr5l//AG9buJkP6iwKauoxeZ 6rUzoNste7WKVM+MpXbOYznTYiC/ojIEbJFKU0CSuN8Abg7v5f1MTWMXqxV2nDqHGqfD mOgBiOfYYwxRxLt7g4O/uDg12Sk7FOfIBPLKN41BybLjzjIe54OfjNW1tEU1e76w3i4A 9ndqZXl5lMswJPAIjpDGIv7puz53Y/ZH4pZJvJqdJ580PO5rMt7TqWr1vhayYQ+CkOop 5IwA== X-Gm-Message-State: AGi0PuZdAIXKr1syXnTT3RZVrouLAiuhkmwpytefjMt/x+y9OSwQlpAR OUTf/OnZOIdqLBoxj86TBPgkPk51zkkdS/Vc8pNJfADTWx4= X-Google-Smtp-Source: APiQypJw72BvkwFyYJbIKLqyCD1nueRvWGx7p6tDvFiPi4Co55ACp1IwePlXNOU8OeQFadCKY2hC7zpRgucrV4VcAfs= X-Received: by 2002:aca:4403:: with SMTP id r3mr9935065oia.84.1586111346321; Sun, 05 Apr 2020 11:29:06 -0700 (PDT) MIME-Version: 1.0 References: <20200405143846.GC32510@blackswan.r0t.uk> <20200405150012.GD32510@blackswan.r0t.uk> In-Reply-To: <20200405150012.GD32510@blackswan.r0t.uk> From: Bart Schaefer Date: Sun, 5 Apr 2020 11:28:55 -0700 Message-ID: Subject: Re: Is it possible to limit the height or rows of menus? To: Zsh Users Content-Type: text/plain; charset="UTF-8" On Sun, Apr 5, 2020 at 8:01 AM Dave Woodfall 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.