From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: _archie
Date: 16 Oct 1999 13:47:29 +0900 [thread overview]
Message-ID: <rsq4sfr52u6.fsf@crane.jaist.ac.jp> (raw)
I wrote a completion function for _archie.
But it has a problem.
Z:akr@is27e1u11% Src/zsh -f
is27e1u11% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst
is27e1u11% compconf group_matches=yes message_format='%d' description_format='%d'
is27e1u11% compconf describe_options=yes describe_values=yes option_prefix=yes
is27e1u11% archie -<TAB>
->
is27e1u11% archie -
string
Why aren't descriptions of options displayed?
This is also occured in plain 3.1.6-pws-6 after s/opt_args/options/.
--- /dev/null Sat Oct 16 12:11:10 1999
+++ Completion/User/_archie Sat Oct 16 13:42:43 1999
@@ -0,0 +1,30 @@
+#compdef archie
+
+local state line
+typeset -A opt_args
+
+_arguments -s \
+ '-D[debug level]' \
+ '-v[print version]' \
+ '-V[verbose mode]' \
+ '-O[specifies offset]:offset:' \
+ '-a[list matches as Alex filenames]' \
+ '-c[case sensitive substring search]' \
+ '-e[exact string match (default)]' \
+ '-r[regular expression search]' \
+ '-s[case insensitive substring search]' \
+ '-l[list one match per line]' \
+ '-t[sort inverted by date]' \
+ '-m[specifies maximum number of hits to return (default 95)]:hits to return:' \
+ '-o[specifies file to store results in]:file to store:' \
+ '-h[specifies server host]:server host:->serverhost' \
+ '-L[list known servers and current default]' \
+ '-N-[specifies query niceness level (0-35765)]:niceness level:' \
+ ':string:'
+
+case "$state" in
+serverhost)
+ : ${(A)archie_servers:=${(M)$(archie -L):#archie.*}}
+ compadd $archie_servers
+ ;;
+esac
--
Tanaka Akira
next reply other threads:[~1999-10-16 4:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-16 4:47 Tanaka Akira [this message]
1999-10-18 9:16 Sven Wischnowsky
1999-10-20 16:15 ` Tanaka Akira
1999-10-21 8:32 Sven Wischnowsky
1999-10-21 9:05 ` Tanaka Akira
1999-10-21 10:31 Sven Wischnowsky
1999-10-21 11:28 ` Tanaka Akira
1999-10-21 12:42 Sven Wischnowsky
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=rsq4sfr52u6.fsf@crane.jaist.ac.jp \
--to=akr@jaist.ac.jp \
--cc=zsh-workers@sunsite.auc.dk \
/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).