zsh-workers
 help / color / mirror / code / Atom feed
* Completion oddities
@ 2023-12-10 17:27 Bart Schaefer
  2023-12-10 22:56 ` Bart Schaefer
  2023-12-12  0:28 ` Oliver Kiddle
  0 siblings, 2 replies; 6+ messages in thread
From: Bart Schaefer @ 2023-12-10 17:27 UTC (permalink / raw)
  To: Zsh hackers list

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-12  6:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-10 17:27 Completion oddities Bart Schaefer
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

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).