zsh-users
 help / color / mirror / code / Atom feed
From: Pier Paolo Grassi <pierpaolog@gmail.com>
To: "Jun. T" <takimoto-j@kba.biglobe.ne.jp>
Cc: Zsh-Users List <zsh-users@zsh.org>
Subject: Re: menu completion
Date: Sat, 23 May 2020 12:51:58 +0200	[thread overview]
Message-ID: <CAP+y1xDxK+6YHV3foF+yE6qBzdCiY33w=JHfakTPxbRatPmV1Q@mail.gmail.com> (raw)
In-Reply-To: <6F7E7CFA-43CF-4D21-A9EA-E64CA84A9EAA@kba.biglobe.ne.jp>

[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]

Hello, thanks for your message. Since I am happy with the solution of
using _gnu_generic for grep completion my interest is mostly for the
mechanics of the problem.
Basically I wonder if it is up to the completer to choose whether to do
interactive menu completion, any thoughts on this?

Pier Paolo Grassi
linkedin: https://www.linkedin.com/in/pier-paolo-grassi-19300217
founder: https://www.meetup.com/it-IT/Machine-Learning-TO


Il giorno ven 22 mag 2020 alle ore 20:36 Jun. T <
takimoto-j@kba.biglobe.ne.jp> ha scritto:

>
> > 2020/05/23 1:12, Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
> >
> > echo $ZSH_VERSION
> > 5.1.1
>
> I think the problem is in _grep in that old version of zsh.
>
> You can either
> (1) upgrade zsh (probably zsh-5.4 or later works), or
>
> (2) download the latest zsh tarball, extract Completion/Unix/Command/_grep
> and use it, or
>
> (3) copy /usr/share/zsh/5.1.1/functions/_grep and modify the following line
> (around line 13)
>     '(-e --regexp -f --file)1: :_guard "^--*" pattern'
> to
>     '(-e --regexp -f --file)1: :_guard "^-*" pattern'
> and use it.
>

  reply	other threads:[~2020-05-23 10:53 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
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 [this message]
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+y1xDxK+6YHV3foF+yE6qBzdCiY33w=JHfakTPxbRatPmV1Q@mail.gmail.com' \
    --to=pierpaolog@gmail.com \
    --cc=takimoto-j@kba.biglobe.ne.jp \
    --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).