Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zstyle tag-order completion issue
- X-seq: zsh-users 26059
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Ahmad Ismail <ismail783@xxxxxxxxx>
- Subject: Re: zstyle tag-order completion issue
- Date: Wed, 9 Sep 2020 18:03:47 +0000
- Archived-at: <https://zsh.org/users/26059>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-09/20200909180347.770c9f9e%40tarpaulin.shahaf.local2>
- Authentication-results: zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm3 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=fm1; bh=nIMLXDGMxMZ1Kntwpqftqz4x+W i/bYgEQTt4GuClkZA=; b=kTFtMDrQYdTiBxHfBAcN19Ww9RyflG3MefXv18mpwl mrt549Malg+3qZxgVXsasQRaedm1nElkQl8S+8TwskNXXKqcMpXm5P4yLVJ+KocO 3i3FeSUhJOoXl4C1J+zXG4K+LOP8R1upNSgiFL1qxbwpzPZP9Jg1Jeo+0iPhOMBE o2kYxKXGkg640Dj3BeMITNzfEJGpBhT9JlzmDv6LdFSY/dzGoWznBjY9W5/y+gZB aBFdAz9qP/N90FB4r/ugTFtEfgEXBtB+Nj0FlZN31SaaiKjhp9G45LVHyaq4c4oP fMqbHtCgMqvbWG7/U/UqLGJ6yXPp8B9hcwoRJQagejTw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=nIMLXDGMxMZ1Kntwpqftqz4x+Wi/bYgEQTt4GuClk ZA=; b=Q/f5ouNBHod/WuqhIOFAAGCrcxJwmzd1bjXZRh2sbkEgFZWeYeEJ0G11G FI2V8QpW/u2L4JteU8aXs9sjIus7tZgy4sH84fGC4PYEc1IA370gOBtyiw9Buvtp Mj3gDPuq+WOl2W0paOQPHuWhY8mzmrdRUKBLOiEv5thRiN5FStbeacT6Kbri3PSv cgwErpmhcSxtVEXophBBM9ND7Hb0oZyofwfAhjK5M2rlD5whnsGiGD0a229yOSiQ PNIypz33q25C41Ufd3CLOoaj5Ezala3DbjeIIcPDhkJfOh3nF4/vihyWnoGrKs+A JGhZu1bue2KCKR0PbpKOVusoPVZ3w==
- In-reply-to: <CAHAhJwKTL-fqoM3GcyxTLYG8zJDvF-7VMP9p=rwQyvhwKkk1EA@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <CAHAhJwKTL-fqoM3GcyxTLYG8zJDvF-7VMP9p=rwQyvhwKkk1EA@mail.gmail.com>
- Sender: zsh-users-request@xxxxxxx
Ahmad Ismail wrote on Wed, 09 Sep 2020 18:33 +0600:
> In git completion, I want ancillary-manipulator-commands tag first, then
> ancillary-interrogator-commands tag, then rest of the tags.
>
> My following zstyle is showing ancillary-manipulator-commands tag first,
> then ancillary-interrogator-commands tag, but then not showing rest of the
> tags.
>
> zstyle -e ':completion::complete:git:argument-1:' tag-order '
> reply=(
> "ancillary-manipulator-commands
> ancillary-interrogator-commands"
> -
> )
> '
This means: First, show a-m-commands and a-i-commands; and, because of
the dash, show nothing else. So, just delete the solitary dash. Note:
with that configuration, you'll have to invoke _next_tags (q.v.) in
order to list completions from other tags.
Incidentally, you can always simply «zstyle -e foo bar 'reply=(baz
qux)'» to «zstyle foo bar baz qux». It's exactly equivalent.
Note the quoting. «zstyle … tag-order 'foo bar'» and «zstyle …
tag-order foo bar» are both valid, but have different meanings.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author