zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: Zsh completion configuration LISTMAX
Date: Tue, 26 Feb 2013 09:22:53 -0800	[thread overview]
Message-ID: <130226092253.ZM4673@torch.brasslantern.com> (raw)
In-Reply-To: <CAHjjW17zbQbgjZsaYoK=+1DvB5DC1sduQ=zv35TMArV7n=J=0Q@mail.gmail.com>

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 ...


  reply	other threads:[~2013-02-26 17:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-26  8:20 joe M
2013-02-26 17:22 ` Bart Schaefer [this message]
2013-02-26 18:10   ` Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=130226092253.ZM4673@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).