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

Re: completion within a function



On Wed, Dec 30, 2020 at 1:31 PM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> It's also possible to capture completions without IPC (via zpty or
> otherwise).

Well, sure, if you entirely rewrite compadd and several of the things
that call it.

For interactive shells it's also possible to capture completions
without IPC by using "vared" in the current shell, but that breaks
inside $( ... ) because ZLE is disabled there and can't be re-enabled.
The dance with zpty is just to provide a context where ZLE is still
functional.




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