Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion introspection
- X-seq: zsh-users 24889
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: Completion introspection
- Date: Mon, 1 Jun 2020 08:07:30 +0000
- Cc: Zsh Users <zsh-users@xxxxxxx>
- In-reply-to: <CAN=4vMoBiGtmVNYEuv6=cQnLegFBhVtksOGsr+DC4AMXPcok2Q@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author