From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Roman Perepelitsa <roman.perepelitsa@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Completion introspection
Date: Mon, 1 Jun 2020 08:07:30 +0000 [thread overview]
Message-ID: <20200601080730.7d373c99@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <CAN=4vMoBiGtmVNYEuv6=cQnLegFBhVtksOGsr+DC4AMXPcok2Q@mail.gmail.com>
Roman Perepelitsa wrote on Sun, 31 May 2020 10:44 +0200:
> What's the best way to retrieve the current completion word, tags and
> contexts from a zle widget?
>
What problem are you trying to solve?
> I'd like to define a regular zle widget (not a completion widget) and am
> looking for a way to retrieve:
>
Why must the widget not be a completion widget?
> - the word that would be completed if I pressed tab: ~/foo/
> - the first context: :completion::complete:ls::
> - tags from the last context: globbed-files
next prev parent reply other threads:[~2020-06-01 8:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-31 8:44 Roman Perepelitsa
2020-06-01 8:07 ` Daniel Shahaf [this message]
2020-06-01 8:22 ` Roman Perepelitsa
2020-06-02 13:43 ` Oliver Kiddle
2020-07-01 17:46 ` Roman Perepelitsa
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=20200601080730.7d373c99@tarpaulin.shahaf.local2 \
--to=d.s@daniel.shahaf.name \
--cc=roman.perepelitsa@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).