Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Fix zstyle option completion
- X-seq: zsh-workers 47742
- From: dana <dana@xxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] Fix zstyle option completion
- Date: Mon, 14 Dec 2020 03:55:25 -0600
- Archived-at: <https://zsh.org/workers/47742>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-12/2D922DB3-2D14-4F78-B99E-7F0D7C5D6F63%40dana.is>
- Authentication-results: zsh.org; iprev=pass (mail-il1-f195.google.com) smtp.remote-ip=209.85.166.195; dkim=pass header.d=dana-is.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none
- Cc: Zsh hackers list <zsh-workers@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=lmy6rrtdDOwrRVkhYpRquT6UPd1FiDcdNFtytDteUZY=; b=EhqIDNI5YwGehD2LEAqe7sW3PsUpXRczCRLNtynaj8JM9AS1Zumh3zxM8xq+XL8NYe zILUlvsn8E/LxnGVCSO82VL0MPawoqw5Tj1mPLImQxr0roWZ5o58COqzCPew7N0FOtHs SFiEmtlsRdm9pNACKh2D9Br/AuxthA+9dnai4rmExaiHoW0XhLbDW6TqG6Gqm2Fsp3ZZ NfDMOzzFGn592TkJQ9WkKMJdgUhNDtF7uXq73FyU10jhsz68C5KkZ9z2OsgEq5MQWHX6 zAokAWukZEHETV7VhJy0OQz0xFzBsxn0p+iRp7o7Gxs1moRESNx5451p3QysBKT4zL4e PLAw==
- In-reply-to: <20201213173119.GA6254@tarpaulin.shahaf.local2>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <D5C6BE91-013B-476D-BF33-505C72CF6FAC@dana.is> <20201213173119.GA6254@tarpaulin.shahaf.local2>
- Sender: zsh-workers-request@xxxxxxx
On 13 Dec 2020, at 11:31, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> Could you clarify the precise LBUFFER/RBUFFER values that "won't
> complete"?
For example, when i do:
# LBUFFER='zstyle -'
# RBUFFER=' foo bar'
% zstyle -<TAB> foo bar
... it tries (unsuccessfully) to complete argument-1 instead of showing me
options.
On 13 Dec 2020, at 11:31, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> As written, I think the patch will cause «zstyle -g foo bar baz <TAB>»
> to offer completions, whereas currently it correctly completes nothing.
I don't think it should. All the options are exclusive with each other, so
that takes care of that already, and the -A '-*' should handle cases like
`zstyle foo bar <TAB>`. It gives me 'no more arguments' when i test your
example with my change. But i might not fully understand what you mean
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author