zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-workers@zsh.org
Subject: Re: Changing subword-range according to current completion context
Date: Fri, 03 Nov 2017 12:23:49 +0000	[thread overview]
Message-ID: <20171103122349.4bf81a1c@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <87h8ubo9zp.fsf@wavexx.thregr.org>

On Fri, 3 Nov 2017 12:52:10 +0100
Yuri D'Elia <wavexx@thregr.org> 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


  reply	other threads:[~2017-11-03 12:24 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 [this message]
2017-11-03 14:57     ` Yuri D'Elia
2017-11-04  1:22       ` Bart Schaefer
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=20171103122349.4bf81a1c@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --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).