From: Aryn Starr <whereislelouch@icloud.com>
To: zsh-workers@zsh.org
Subject: Get completions non-interactively
Date: Thu, 15 Aug 2019 19:11:25 +0430 [thread overview]
Message-ID: <5806F9C9-C556-4155-A600-8B52DBB5EAE5@icloud.com> (raw)
[-- 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.)
reply other threads:[~2019-08-15 14:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5806F9C9-C556-4155-A600-8B52DBB5EAE5@icloud.com \
--to=whereislelouch@icloud.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).