Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion introspection



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