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 31696 invoked from network); 5 Apr 2020 22:14:20 -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 22:14:20 -0000 Received: (qmail 13859 invoked by alias); 5 Apr 2020 22:14:13 -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: 24751 Received: (qmail 29669 invoked by uid 1010); 5 Apr 2020 22:14:13 -0000 X-Qmail-Scanner-Diagnostics: from 3.smtp.34sp.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(46.183.9.3):SA:0(-1.9/5.0):. Processed in 2.054857 secs); 05 Apr 2020 22:14:13 -0000 X-Envelope-From: dave@tty1.uk X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at tty1.uk does not designate permitted sender hosts) Date: Sun, 5 Apr 2020 23:13:32 +0100 From: Dave Woodfall To: zsh-users@zsh.org Subject: Re: Is it possible to limit the height or rows of menus? Message-ID: <20200405221332.GC9554@blackswan.r0t.uk> Mail-Followup-To: zsh-users@zsh.org References: <20200405143846.GC32510@blackswan.r0t.uk> <20200405150012.GD32510@blackswan.r0t.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Authenticated-As: dave@unrealize.co.uk X-OriginalSMTPIP: 82.40.94.2 X-34spcom-MailScanner-Information: Please contact the ISP for more information X-34spcom-MailScanner-ID: A7BC26805CF.A2D9F X-34spcom-MailScanner: Found to be clean X-34spcom-MailScanner-SpamCheck: not spam, SpamAssassin (score=-10, required 6.5, autolearn=disabled, X34SP_OVERRIDE -10.00) X-34spcom-MailScanner-From: dave@tty1.uk On 2020-04-05 11:28, Bart Schaefer put forth the proposition: > 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. You are correct. Using ^L or accepting the line, and probably other things, prints the current selected entry twice at the prompt. Scrolling off the end and back to the top eats the previous 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. I did try using LISTMAX, but it doesn't really help for what I want. I'll try to find some other way. -- Dave