help / color / Atom feed
* Get completions non-interactively
@ 2019-08-15 14:41 Aryn Starr
  0 siblings, 0 replies; only message in thread
From: Aryn Starr @ 2019-08-15 14:41 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

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.)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-15 14:41 Get completions non-interactively Aryn Starr


Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git