From: Bart Schaefer <schaefer@brasslantern.com>
To: Mikael Magnusson <mikachu@gmail.com>
Cc: Marlon Richert <marlon.richert@gmail.com>,
Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Why is an 'x' appended in _prefix completer?
Date: Wed, 8 Mar 2023 09:48:45 -0800 [thread overview]
Message-ID: <CAH+w=7Z7Xm-HkwJmWB8ZuUJ5EnU1Sbg3_tH7AevXtYV+bDE0ww@mail.gmail.com> (raw)
In-Reply-To: <CAHYJk3TpbOxurP-gVBsKLRj8NayCCVJENOK37c5UrDo6fvFQYw@mail.gmail.com>
On Wed, Mar 8, 2023 at 4:49 AM Mikael Magnusson <mikachu@gmail.com> wrote:
>
> See the comment above addx() in zle_tricky.c and get_comp_string() (i
> don't actually recommend looking at this code).
I always wondered why Sven chose to use "x" instead of, say, something
out-of-band / non-printable. I guess with metafication etc. maybe
there wasn't any such thing.
Anyway, as I recall it, the point of the extra character is to help
completion distinguish the position of word breaks when completing
somewhere other than at end of line.
next prev parent reply other threads:[~2023-03-08 17:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-08 10:32 Marlon Richert
2023-03-08 12:48 ` Mikael Magnusson
2023-03-08 17:48 ` Bart Schaefer [this message]
2023-03-09 9:21 ` Peter Stephenson
2023-03-09 15:29 ` Bart Schaefer
2023-04-11 9:49 Marlon Richert
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='CAH+w=7Z7Xm-HkwJmWB8ZuUJ5EnU1Sbg3_tH7AevXtYV+bDE0ww@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=marlon.richert@gmail.com \
--cc=mikachu@gmail.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).