From: Bart Schaefer <schaefer@brasslantern.com>
To: Pier Paolo Grassi <pierpaolog@gmail.com>
Cc: Zsh-Users List <zsh-users@zsh.org>
Subject: Re: completion inside vared
Date: Fri, 18 Feb 2022 15:39:37 -0800 [thread overview]
Message-ID: <CAH+w=7Yj2QB1aJw0CwxXKPuV=ZHzjOx-R19B=qwPyQ-z6BfYeg@mail.gmail.com> (raw)
In-Reply-To: <CAP+y1xDoZzLBAbrPyABfFizasg+PNeu3sehsL-Dg09EdqM3yYA@mail.gmail.com>
On Fri, Feb 18, 2022 at 3:09 PM Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
>
> does anyone has some clue as to where I can find how to do this?
Been busy and didn't have a chance to respond before.
The _in_vared completer forces use of _value which calls _default. A
side-effect of _default is that compctl completions are attempted.
So what you need is:
zstyle ':completion::complete:-value-*:*' use-compctl no
Or if you want it to be specific to vared, something like:
zstyle -e ':completion::complete:-value-*:*' use-compctl '[[
$funcstack = *_in_vared* ]] && reply=no'
which admittedly is a bit convoluted ... _in_vared probably ought to
be doing some style checks of its own rather than pushing everything
down to _value.
next prev parent reply other threads:[~2022-02-18 23:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-17 10:01 Pier Paolo Grassi
2022-02-18 23:08 ` Pier Paolo Grassi
2022-02-18 23:39 ` Bart Schaefer [this message]
2022-02-19 17:27 ` Pier Paolo Grassi
2022-02-21 19:27 ` Bart Schaefer
2022-02-21 21:55 ` Pier Paolo Grassi
2022-03-11 17:37 ` Pier Paolo Grassi
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=7Yj2QB1aJw0CwxXKPuV=ZHzjOx-R19B=qwPyQ-z6BfYeg@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=pierpaolog@gmail.com \
--cc=zsh-users@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).