From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25662 invoked by alias); 26 Feb 2013 17:23:22 -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: X-Seq: 17651 Received: (qmail 22561 invoked from network); 26 Feb 2013 17:23:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130226092253.ZM4673@torch.brasslantern.com> Date: Tue, 26 Feb 2013 09:22:53 -0800 In-reply-to: Comments: In reply to joe M "Zsh completion configuration LISTMAX" (Feb 26, 3:20am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Zsh completion configuration LISTMAX MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Feb 26, 3:20am, joe M wrote: } } I am trying to figure out how to limit the number of entries shown in } a list by the completer. I exported LISTMAX=50 and I can see it in the } shell with "echo $LISTMAX". } } But, for some reason, the lists are a lot bigger than that. All that LISTMAX controls is whether zsh asks something like zsh: do you wish to see all 2673 possibilities (1272 lines)? before it displays the listing. It has nothing to do with the size of the list once it is displayed, and if you have menu-selection enabled (so that the list can be scrolled/navigated) then LISTMAX is ignored. If you actually want to eliminate some of the possible matches so that the list itself is shorter, you either need to reduce the number of words passed to compadd [difficult in general but possibly doable in a custom function like the _history_or_autocd example] or play with the tag-order / group-order styles to limit the sets of matches displayed. Others may have additional suggestions ...