Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Get completions non-interactively
- X-seq: zsh-workers 44669
- From: Aryn Starr <whereislelouch@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Get completions non-interactively
- Date: Thu, 15 Aug 2019 19:11:25 +0430
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1565880089; bh=iXBZ8zOtjHkHIMiH48WTTZktDOaOk28nVGVn/TA3gLc=; h=From:Content-Type:Date:Subject:Message-Id:To; b=ehdBD/fbhpP5gmEkn9ARBhQ8mypjKT1k3B/Qia23Aa25bmXG0LkvS1Yinuk8uJG1h dJn4S9j+yoOfbgpru1uzcoeYCzXx1eklQK44D5bDiV+wUaVTpnuTZiGlc1fb5nv3HE ojwA54ra4E6p6CVeofVAA4FVTX/hPh1OrpNecjbE4IfXB/A8wQggcTVcoNEwqUSHSG /tiO4JgyRAY4M8F7nhZfMgb4HNP9KmmHM0+4D9Tajm/3KKjKidU4Yw9XF5P/YZVoyP gr7tTcZKOCieso7LA09sl9gWe7FYj8WmGikk7A75B78sxTQtMPyKhiKhTNAvyRAbn9 wI91+pFfpucrg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
I use a custom-made Telegram bot to be able to send commands to my server. The bot basically runs `zsh -c INPUT` on its input and returns output. (I don’t suppose there is anything like https://github.com/nrepl/nrepl for zsh?)
I sometimes find myself in need of the assistance of zsh’s completion system. Is there any way I can get the candidate completions by running a command?
I have googled, and found https://github.com/Valodim/zsh-capture-completion, but it’s a hack. I imagine it would be better if zsh offered this functionality itself.
PS: Please “reply-all.” I’m not subscribed to the mailing list. (It’s always a good idea to reply-all.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author