From: Pier Paolo Grassi <pierpaolog@gmail.com>
To: Mikael Magnusson <mikachu@gmail.com>
Cc: Zsh-Users List <zsh-users@zsh.org>
Subject: Re: menu completion
Date: Mon, 6 Apr 2020 04:18:42 +0200 [thread overview]
Message-ID: <CAP+y1xD-LzgWEnP0vJ3us1-_VuzYx+He7gySNypRchO_=pnnQQ@mail.gmail.com> (raw)
In-Reply-To: <CAHYJk3SsRwW2G5t2Mvh0wzh9QyUuQV6k0S0H1kTyAEXhbMc3ww@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]
thanks for the advices
I found that setting LISTMAX=100000 doesn't get me the interactive menu
completion, just the (normal?) menu completion without the "do you wish to
see" question
what I mean is (sorry if I am not using the correct terminology)
grep -<tab>
shows a list of options, but does not allow me to move through the options
with the arrows
if I do
compdef _gnu_generic grep
grep -<tab> gives me a menu like I want
in my .zshrc I have
zstyle ':completion:*' menu select=2
and nothing more specific to disable it just for grep
if I don't redefine the completer with compdef the default completer for
grep is _grep
so, is it possibile that the issue is that _grep doesn't do interactive
menu completion? is this something demanded to the completer to decide?
Pier Paolo Grassi
Il giorno dom 5 apr 2020 alle ore 21:29 Mikael Magnusson <mikachu@gmail.com>
ha scritto:
> On 4/5/20, Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
> > Hello, when trying to complete with interactive menu completion some
> > command with many options, eg grep, I get a message like
> > zsh: do you wish to see all 156 possibilities (41 lines)?
> > is it possibile to disable it and just see the interactive menu?
>
> You can set LISTMAX=100000 or so to increase the default limit (which
> is 100, I think). There is some other way to disable it too, because I
> don't get the prompt and haven't set LISTMAX, but I'm not sure how I
> did it :).
>
> --
> Mikael Magnusson
>
next prev parent reply other threads:[~2020-04-06 2:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-05 12:00 Pier Paolo Grassi
2020-04-05 16:48 ` Dave Woodfall
2020-04-05 19:29 ` Mikael Magnusson
2020-04-06 2:18 ` Pier Paolo Grassi [this message]
2020-05-07 18:55 ` Jun. T
2020-05-09 18:23 ` Pier Paolo Grassi
2020-05-12 0:39 ` Jun T
2020-05-20 18:16 ` Pier Paolo Grassi
2020-05-22 15:34 ` Jun. T
2020-05-22 16:12 ` Pier Paolo Grassi
2020-05-22 18:36 ` Jun. T
2020-05-23 10:51 ` Pier Paolo Grassi
2020-05-23 19:21 ` Bart Schaefer
2020-05-23 19:40 ` Bart Schaefer
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='CAP+y1xD-LzgWEnP0vJ3us1-_VuzYx+He7gySNypRchO_=pnnQQ@mail.gmail.com' \
--to=pierpaolog@gmail.com \
--cc=mikachu@gmail.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).