zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] _postfix (postconf): Complete only applicable parameters for -X and -#.
Date: Thu, 15 Sep 2016 02:15:03 +0000	[thread overview]
Message-ID: <20160915021503.GA15486@fujitsu.shahaf.local2> (raw)
In-Reply-To: <160914094658.ZM29734@torch.brasslantern.com>

Bart Schaefer wrote on Wed, Sep 14, 2016 at 09:46:58 -0700:
> On Sep 14,  5:14am, Daniel Shahaf wrote:
> } Subject: [PATCH] _postfix (postconf): Complete only applicable parameters
> }
> } ---
> } One question about this patch:
> }
> }     % /usr/sbin/postconf -X <TAB>
> }     zsh: do you wish to see all 112 possibilities (28 lines)?
> }
> } I don't understand why it says "112".
>
> It's probably the case that each of the matches has been added to
> more than one tag group.  What's output of ^Xh in place of TAB there?

% /usr/sbin/postconf -X <_complete_help>
tags in context :completion::complete:postconf::
    argument-rest options  (_arguments _postfix)
tags in context :completion::complete:postconf:argument-rest:
    values  (_postfix_main_cf_parameter _postfix)

> What do you get if you agree to see all the possibilities?

The prompt says:

    zsh: do you wish to see all 112 possibilities (28 lines)?

If I answer "yes" then I get 28 lines, that show everything in my
`postconf -n` output and nothing else:

    alias_database                           alias_maps                            -- hash:/etc/aliases
    append_dot_mydomain                      biff                                  -- no
    config_directory                                                               -- /etc/postfix
    ⋮
    smtp_sasl_auth_enable                    enable_long_queue_ids  smtpd_use_tls  -- yes
    ⋮
    smtpd_tls_session_cache_database                                               -- btree:${data_directory}/smtpd_scache

This is in 'zsh -f'.

Thanks,

Daniel


  reply	other threads:[~2016-09-15  2:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-14  5:14 Daniel Shahaf
2016-09-14 16:46 ` Bart Schaefer
2016-09-15  2:15   ` Daniel Shahaf [this message]
2016-09-15  3:35     ` Bart Schaefer
2016-09-15  4:48       ` Daniel Shahaf

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=20160915021503.GA15486@fujitsu.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-workers@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).