Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Fake parameter completion?
- X-seq: zsh-users 24366
- From: dana <dana@xxxxxxx>
- To: Chris Nebel <c.nebel@xxxxxxx>
- Subject: Re: Fake parameter completion?
- Date: Fri, 18 Oct 2019 18:44:24 -0500
- Cc: zsh-users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=AdP/GJ+QiIDutek7K4VvGw0hUOX8O66RV+rKaw6iQoo=; b=L4xBpXKv1lt2EqjwwEShh4KcwiuGzi0yF5GkTCnptHuwPf1J8RIWUce6oXMRshPro2 Hu/qkRjHuW/+dFXmVYS5iSYDNfYMXu+R3nXJVXLap1OLolnaMzkqAKj/DuWC3L4cvfrx dbJIHW6mQhbCnrZKH6fi9kd1s0NSff6CeHwYMgAnx+3oPYclhg7QS8n20F6lyddKMhx/ oj4L9IpNYwk1PY+XtzHG1K/pJZ7e6GKvAD7YVxUOI36XuEKGoyyblcw7Sq8u06/F1Spb dsQv2kISCyBouZTA0pEb/X3tRYh3giubA6n1PD6MHQWnWA82yYE2DqMHb59B5Du60iKu TPDQ==
- In-reply-to: <7C2ECA3E-EA6B-4C31-BF3A-1CF791F71785@mac.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <7C2ECA3E-EA6B-4C31-BF3A-1CF791F71785@mac.com>
On 18 Oct 2019, at 16:08, Chris Nebel <c.nebel@xxxxxxx> wrote:
> 1. Why are “fake” and “fake-parameters” distinct styles? Obviously they
> behave differently in practice, but why couldn’t “fake” take the position
> into account and add the magic “=“ like “fake-parameters” does?
The immediate reason they work differently is that the styles are applied at
different points during completion. fake and fake-always are handled by the
low-level function _description, whilst fake-files and fake-parameters are
handled by their respective higher-level functions directly.
It probably could have been designed differently, but doing it this way seems
(comparatively) straight-forward, especially since they use incompatible
syntaxes for their values. But this was all long before my time, so i'm just
speculating
On 18 Oct 2019, at 16:08, Chris Nebel <c.nebel@xxxxxxx> wrote:
> 2. What is the actual value of the “*” in the context? Not “parameters”,
> apparently. (I should mention that I do not truly understand zshcompsys.)
The tag used for parameter completion is parameters, but _parameters omits it
when it looks up the style. I confess i'm not sure what the significance of
that is
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author