From: Will Leinweber <will@heroku.com>
To: zsh-workers@zsh.org
Subject: help with a completion script?
Date: Tue, 4 Aug 2015 19:56:45 +0200 [thread overview]
Message-ID: <CAL8LqZRpPYik1PrEp_b2Wk+D=dhzKg7mcOYm4XU2udBNsSa+Bw@mail.gmail.com> (raw)
I have a medium-to-small completion script here: http://git.io/vOaxv .
I've read through several tutorials, other scripts, and zshcompsys(1),
but there is one main thing I haven't been able to figure out.
The first argument to this binary is either one of several
subcommands, and that is all fine, however it can also be a *.cr file.
I tried adding in _files to the subcommand list, but instead of
showing files it shows just a literal * character and ends there.
Does anyone know of example completion scripts that do both
subcommands and files as the first argument, or know how to do this?
next reply other threads:[~2015-08-04 17:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-04 17:56 Will Leinweber [this message]
2015-08-04 18:57 ` Oliver Kiddle
2015-08-04 20:52 ` Will Leinweber
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='CAL8LqZRpPYik1PrEp_b2Wk+D=dhzKg7mcOYm4XU2udBNsSa+Bw@mail.gmail.com' \
--to=will@heroku.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).