Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Changing subword-range according to current completion context
- X-seq: zsh-workers 41981
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Changing subword-range according to current completion context
- Date: Fri, 03 Nov 2017 12:23:49 +0000
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20171103122354euoutp02a7b8e307c0e3bc2fd9331f2f7b7cd5c6~zkuo95kDw2530325303euoutp02H
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1509711834; bh=rPCUzlWcYeKz/rK7XB8vxNkH47yNn1e8GBS4BSl3s4g=; h=Date:From:To:Subject:In-reply-to:References:From; b=Aaq+wL17F3WAiO4xrVNceoH+IjVczad0lOGSo7Wd+DqbkR+OQipCos/hWMIkiTwVT Zdh8abVZCOwmVJC7S3+Q60AyFUvSEkAx9zwAZv99PsrfTtHJOdLiDA7unKHljnNf4Z /bIzzL6cAfPrWe5U7z0XDIkb6ha9VAphp0Q0x+Hc=
- In-reply-to: <87h8ubo9zp.fsf@wavexx.thregr.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <CGME20171103121014epcas2p1342033fa4eb58a6d7f61400c619d0b52@epcas2p1.samsung.com> <87h8ubo9zp.fsf@wavexx.thregr.org>
On Fri, 3 Nov 2017 12:52:10 +0100
Yuri D'Elia <wavexx@xxxxxxxxxx> wrote:
> I'd like to fine-tune the way words are interpreted according to the
> completion context which was used to expand the word, not to the zle
> context.
>
> Is it saved anywhere? Is it possible to correlate the two?
Hmm, I'm not sure that completion even has a generic notion of
words as such. Each completion just parses the command line, generally
(but not necessarily) starting with a single command line word as
entered so far --- in this case parsed according to shell rules by
the lexical analyser, this is hard-wired because it's extremely
complicated --- and then takes it from there. I can't think of a point
where it matches neatly onto a single interface that tells you the bits
of what you're looking at.
Did you have an example?
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author