Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion: lookup argument using descriptions
- X-seq: zsh-users 26771
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Tomasz Pala <gotar@xxxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: completion: lookup argument using descriptions
- Date: Thu, 10 Jun 2021 11:45:20 +0200
- Archived-at: <https://zsh.org/users/26771>
- In-reply-to: <20210610093007.GA6653@polanet.pl>
- List-id: <zsh-users.zsh.org>
- References: <20210610093007.GA6653@polanet.pl>
On Thu, Jun 10, 2021 at 11:31 AM Tomasz Pala <gotar@xxxxxxxxxx> wrote:
>
> Hello,
>
> sometimes I find myself looking for appropriate option by reading down
> all the descriptions of the arguments before going straight to the
> documentation to simply /search for some phrase. I wonder: would that be
> possible directly from zle?
Try this:
zmodload zsh/complist
setopt menucomplete
zstyle ':completion:*' menu select=0 search
This will allow you to search right away after TAB.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author