Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completion: lookup argument using descriptions



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