From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5150 invoked from network); 11 Apr 2000 15:45:42 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 11 Apr 2000 15:45:42 -0000 Received: (qmail 17813 invoked by alias); 11 Apr 2000 15:45:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10659 Received: (qmail 17793 invoked from network); 11 Apr 2000 15:45:26 -0000 From: "Bart Schaefer" Message-Id: <1000411154516.ZM32049@candle.brasslantern.com> Date: Tue, 11 Apr 2000 15:45:16 +0000 In-Reply-To: <200004110813.KAA03974@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: Question" (Apr 11, 10:13am) References: <200004110813.KAA03974@beta.informatik.hu-berlin.de> <000201bfa38f$1e4a4d60$21c9ca95@mow.siemens.ru> <200004110836.KAA03936@beta.informatik.hu-berlin.de> <200004110951.LAA04312@beta.informatik.hu-berlin.de> <000901bfa39d$391ae4c0$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: Question MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 11, 10:13am, Sven Wischnowsky wrote: } Subject: Re: Question } } Oh my, and I only asked if it would be better to mention the number of } lines needed for the list when asking if it should be displayed... ;-) Like Andrej, I think it makes only a very small difference either way. I was going to reply to a lot more of the remarks in this thread, but I think it comes down to: I don't think we should be "in the business" of implementing pagers, but some alternate ideas come to mind ... In a later message, Sven went on: } } Err, wait. You almost certainly want to use different commands for } different lists, so we would have to read the command line to use for } piping first. Isn't that getting a bit too complicated? } } Hm, make isearch work in menu-selection and the (proposed, } vapour-warish) pager? Ouch. Here are two possible suggestions; I haven't actually attempted either of them. (1) Format up the completion listing as if it were going to shout, but stuff it all into a string instead. (That's probably happening already, I didn't look.) Then point a parameter at that string and invoke vared. ZLE already takes care of paging up and down. With some diddling of key-bindings, you can move around on the current "screen" just as in menu-selection and arrange to exit from vared with the parameter set to the substring the cursor was over when accept-line was pressed. (2) Use a "select x in ..." loop over the values. As of some while ago, select already knows how to page through screenfuls of choices. You can't go backwards, but it cycles to the top after reaching the bottom. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com