From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Completion oddities
Date: Sun, 10 Dec 2023 09:27:00 -0800 [thread overview]
Message-ID: <CAH+w=7YZRQru3D6Cb6G6PMzVpkG9fbeOwbG_3CR-WD8mTU4Uqw@mail.gmail.com> (raw)
Maybe I'm just confused.
#1
It appears that setting MENUSELECT globally, overrides the "no-select"
string in the "menu" zstyle. I would think it should be the other way
around.
#2
When the "original" style is true for _approximate and _correct, the
REC_EXACT option seems to be ignored. Is there a way around that?
#3
According to _complete_debug output, this is the context _approximate
is using for looking up a style when called from _correct_word (that
is, as "_main_complete _correct"):
zstyle -t ":completion:correct-word:correct-1:::" original
Appending the count to the completer is documented for _approximate
but not mentioned in _correct.
#4
The way that the function field of a context is computed is a bit
annoying. For example, if I call
zle _correct_word
from _generic, then instead of the widget name in the function slot,
the function is correct-word. This makes it impossible to specify
styles for the widget separately from styles for using _correct_word
directly. It's done this way by a large number of functions.
next reply other threads:[~2023-12-10 17:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-10 17:27 Bart Schaefer [this message]
2023-12-10 22:56 ` Bart Schaefer
2023-12-12 0:28 ` Oliver Kiddle
2023-12-12 2:10 ` Bart Schaefer
2023-12-12 2:48 ` Bart Schaefer
2023-12-12 6:11 ` Bart Schaefer
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=7YZRQru3D6Cb6G6PMzVpkG9fbeOwbG_3CR-WD8mTU4Uqw@mail.gmail.com' \
--to=schaefer@brasslantern.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).