zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "Yuri D'Elia" <wavexx@thregr.org>, zsh-workers@zsh.org
Subject: Re: Changing subword-range according to current completion context
Date: Fri, 3 Nov 2017 18:22:33 -0700	[thread overview]
Message-ID: <171103182233.ZM31076@torch.brasslantern.com> (raw)
In-Reply-To: <87h8ubbeaq.fsf@wavexx.thregr.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.


  reply	other threads:[~2017-11-04  1:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20171103121014epcas2p1342033fa4eb58a6d7f61400c619d0b52@epcas2p1.samsung.com>
2017-11-03 11:52 ` Yuri D'Elia
2017-11-03 12:23   ` Peter Stephenson
2017-11-03 14:57     ` Yuri D'Elia
2017-11-04  1:22       ` Bart Schaefer [this message]
2017-11-04 10:41         ` Yuri D'Elia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=171103182233.ZM31076@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=wavexx@thregr.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).