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

Re: completion within a function



On Tue, Dec 29, 2020 at 7:24 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> How do we execute a completion within a function?

Depends on the context.

If the function is already executing as a ZLE widget, it might invoke
"zle recursive-edit".

If it's running as a command or from inside a script, using "vared" to
read from the keyboard into a local is one way.

There are examples of both of these in the Functions tree in the distribution.




Messages sorted by: Reverse Date, Date, Thread, Author