From: Marlon Richert <marlon.richert@gmail.com>
To: Oliver Kiddle <opk@zsh.org>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Why does _main_complete not try the next completer when $_comp_mesg is non-zero?
Date: Wed, 31 Mar 2021 13:07:50 +0300 [thread overview]
Message-ID: <CAHLkEDust+W02MJOjRvB5-oGzZ40Xf5Vvh+3jiEuLgFzB8FwnQ@mail.gmail.com> (raw)
In-Reply-To: <52817-1617182733.169625@8lsJ.YVQX.sx5d>
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
On Wed, Mar 31, 2021 at 12:25 PM Oliver Kiddle <opk@zsh.org> wrote:
> What does your completer style look like out-of-interest? Do you set
> zstyle ':completion:*:warnings' format ?
zstyle -e ':completion:*' completer _autocomplete.config.completer
_autocomplete.config.completer() {
reply=( _expand _complete _correct _complete:-fuzzy _history
_history:-fuzzy _ignored )
[[ CURRENT -eq 1 && -z $PREFIX$SUFFIX && $compstate[context] == command
]] &&
reply=( _complete )
}
zstyle -e ':completion:*:warnings' format
_autocomplete.config.warnings-format
_autocomplete.config.warnings-format() {
local d=${${(j:, :)_lastdescr[@]:#}/(#m)*, /$MATCH[1,-3] or }
reply=( $'%{\e[01;02;39m%}'"No ${${:-$PREFIX$SUFFIX}:+matching }$d
found."$'%{\e[0m%}' )
}
[-- Attachment #2: Type: text/html, Size: 1033 bytes --]
next prev parent reply other threads:[~2021-03-31 10:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-28 16:33 Marlon Richert
2021-03-28 17:10 ` Mikael Magnusson
2021-03-28 17:27 ` Marlon Richert
2021-03-28 17:46 ` Bart Schaefer
2021-03-28 18:06 ` Marlon Richert
2021-03-28 20:51 ` Bart Schaefer
2021-03-28 21:42 ` Oliver Kiddle
2021-03-29 1:22 ` Bart Schaefer
2021-03-31 6:29 ` Marlon Richert
2021-03-31 9:25 ` Oliver Kiddle
2021-03-31 10:07 ` Marlon Richert [this message]
2021-03-31 23:20 ` Daniel Shahaf
2021-04-01 5:11 ` Marlon Richert
2021-04-01 17:08 ` Daniel Shahaf
2021-04-02 12:58 ` Marlon Richert
2021-04-03 3:12 ` Daniel Shahaf
2021-04-05 10:26 ` 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=CAHLkEDust+W02MJOjRvB5-oGzZ40Xf5Vvh+3jiEuLgFzB8FwnQ@mail.gmail.com \
--to=marlon.richert@gmail.com \
--cc=opk@zsh.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).