Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion within a function
- X-seq: zsh-users 26278
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: completion within a function
- Date: Wed, 30 Dec 2020 14:05:15 -0800
- Archived-at: <https://zsh.org/users/26278>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-12/CAH%2Bw%3D7YoFLiBgwJ8Nv6KMvJaWvpXSZMgb40koceB1uBVeVcU-Q%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-ot1-f51.google.com) smtp.remote-ip=209.85.210.51; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none
- Cc: Felipe Contreras <felipe.contreras@xxxxxxxxx>, Ray Andrews <rayandrews@xxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0TRDgtf7x8maSqMkHy9VxNNqGstK2pkXwAr/a+hyRoM=; b=YabZ4h9H7KJCCgBDhBD/9kJWr4mv+z1QvkvzTmDSyu8mh2WQ+xEfIs55L9ut3/c3Zk doi8NNs1QF6kf8HltAprKQfgYN1LwPyeYgN/xFoyYc4Y+jsy4RtuPdpaPjrY49O4Vp37 X6x8/miTQKMRD3IDAchwZLDJEqt0BDh2H2p2qvERkFbWHaWITXl6euRt5j3qyPE8ssqj jBE/yoDN1v5knk8D2bauRUhhcKV264bBJ9y8oHVLRxboQBq4bliKn0Pa3pLG6OA0nyzR 0jjceZdka8AzXgZaUan/q0+qFU685IEauN/dMhbOd8oskXbvVPCPlMu7JLJmDG7MaX9f 6ohw==
- In-reply-to: <CAN=4vMp1N4hCK=D8EjXTBqBma7CXbo09aYBy9zVvYXv5u2rGAg@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <c9416d92-29b1-68e5-e51e-d7152f1fbc4b@eastlink.ca> <CAH+w=7bT5GaGvWih=A8KCyUe4N6k25VxDLcpPA5C1yGn38Zimg@mail.gmail.com> <819ec6fe-5af2-2e97-c5bb-f434b1de86d7@eastlink.ca> <CAH+w=7bSbhdHGC89daK+8o0psLhdw969=GviC4s554t37_zrDw@mail.gmail.com> <520ce98a-4394-726d-3d12-8ef414e881c9@eastlink.ca> <CAN=4vMquijkmnETv2xUdnpGcJoQPaimXT1+i+daHoivLmpK+TA@mail.gmail.com> <f490bbd8-dc96-341d-e11b-a5d957c9268e@eastlink.ca> <CAMP44s13tqgmNgUcuAxUJyJ_LGjDSEE1FJ64k2r12UogbW0r0w@mail.gmail.com> <CAH+w=7a+9_jX8xkvKjCVhQWXQMqQkWvahHyzTj=Lm_DgC=o5kw@mail.gmail.com> <CAN=4vMp1N4hCK=D8EjXTBqBma7CXbo09aYBy9zVvYXv5u2rGAg@mail.gmail.com>
- Sender: zsh-users-request@xxxxxxx
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