Zsh Mailing List Archive
Messages sorted by:
Re: Changing subword-range according to current completion context
- X-seq: zsh-workers 41984
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "Yuri D'Elia" <wavexx@xxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Changing subword-range according to current completion context
- Date: Fri, 3 Nov 2017 18:22:33 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=Gjfmlmf8gx0mkUSvrkSlfgV9S25JqLmq3X7UCLOuQUc=; b=mHmAlBRy71zMVhjHqmL0yaLnNVVJOWw+qAQPmeTG4WiNcir50PbNVCx+yT0Knas3SL QDr/4bIVRtE7wBuzSp7i2XBHbCDpPA+tdUX2go+5/KDcAyXPblo1oyA4uTCcHBtd+mUJ 5F9oPQlkRFwjSduf5sM23i6Sb/eZY5kRjHKJP0iyfNdtRQ4PdTXF50necv087UBqYxlN loOM9XSTC4ebuv8A7c4TAm+Gieq7hk27w6UBbVZFGJO3JNJnR5UlApbcBkR19PPmilGW +YipxU4IxOmrax8xsLMmmwSnsYS/WehM4LucSka9GnI0+mzmEL8ROrf90lF/Zo3TeT6G YpIw==
- In-reply-to: <firstname.lastname@example.org>
- List-help: <mailto:email@example.com>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- List-unsubscribe: <mailto:email@example.com>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20171103121014epcas2p1342033fa4eb58a6d7f61400c619d0b52@epcas2p1.samsung.com> <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org>
On Nov 3, 3:57pm, Yuri D'Elia wrote:
} Isn't the state of each word, once expanded, saved somewhere?
Not really, unless the completion function is designed to do so. The
only things that persist from any call of completion to the next are
which completion widget was used and what comprises the previous list
of possible maches, and all that is lost if any other kind of edit or
motion intervenes between calls to completion.
} By reading the manual, I'm not completely sure about the relationship
} between match-words-by-style and match-word-context.
Those are entirely separate widgets and have no relation to completion
(aside from everything being ZLE widgets, of course). They merely make
an identification of the start and end of the word under or adjacent
to the cursor by using simple syntax rules; they know nothing otherwise
of command context or of how the word was added to the editor buffer.
Messages sorted by: