zsh-users
 help / color / mirror / code / Atom feed
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Tomasz Pala <gotar@polanet.pl>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: completion: lookup argument using descriptions
Date: Thu, 10 Jun 2021 11:45:20 +0200	[thread overview]
Message-ID: <CAN=4vMqCc5UsG73s3PdQzW_aqAf0sak4SowSonbK8aif+A_2kg@mail.gmail.com> (raw)
In-Reply-To: <20210610093007.GA6653@polanet.pl>

On Thu, Jun 10, 2021 at 11:31 AM Tomasz Pala <gotar@polanet.pl> 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.


  reply	other threads:[~2021-06-10  9:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-10  9:30 Tomasz Pala
2021-06-10  9:45 ` Roman Perepelitsa [this message]
2021-06-10 10:09   ` Mikael Magnusson
2021-06-13 10:06     ` Tomasz Pala
2021-06-13 10:43       ` Roman Perepelitsa
2021-06-16 10:04         ` Tomasz Pala

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='CAN=4vMqCc5UsG73s3PdQzW_aqAf0sak4SowSonbK8aif+A_2kg@mail.gmail.com' \
    --to=roman.perepelitsa@gmail.com \
    --cc=gotar@polanet.pl \
    --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).