From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: New completions
Date: Fri, 18 Jun 1999 12:36:02 +0200 (MET DST) [thread overview]
Message-ID: <199906181036.MAA13272@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Sven Wischnowsky's message of Fri, 18 Jun 1999 12:01:39 +0200 (MET DST)
I wrote:
> This didn't apply after 6689, so here is a modified patch for that --
> with some other changes (I hope you find them acceptable). The list
> looks more like a select list and I avoided using `compgen -s'.
Oops... we should still be able to complete parameter names, I think
(unfortunately this may make the list much too long for the screen).
Bye
Sven
diff -u oc/Base/_subscript Completion/Base/_subscript
--- oc/Base/_subscript Fri Jun 18 12:02:08 1999
+++ Completion/Base/_subscript Fri Jun 18 12:32:56 1999
@@ -8,7 +8,10 @@
else
compadd -S ']' - "${(@kP)${compstate[parameter]}}"
fi
-elif [[ ${(Pt)${compstate[parameter]}} = array* ]]; then
+ return
+fi
+
+if [[ ${(Pt)${compstate[parameter]}} = array* ]]; then
ind=( {1..${#${(P)${compstate[parameter]}}}} )
list=()
for i in "$ind[@]"; do
@@ -21,6 +24,6 @@
else
compadd -S ']' -y list - "$ind[@]"
fi
-else
- _compalso -math-
fi
+
+_compalso -math-
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1999-06-18 10:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-18 10:36 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-01-14 16:58 PATCH: new completions Oliver Kiddle
2004-01-15 7:33 ` Bart Schaefer
2004-01-15 9:41 ` Oliver Kiddle
1999-06-18 12:49 PATCH: New completions Kiddle, Oliver
1999-06-18 13:04 ` Falk Hueffner
1999-06-18 13:31 ` Tanaka Akira
1999-06-18 13:27 ` Tanaka Akira
1999-06-18 10:01 Sven Wischnowsky
1999-06-18 9:30 Kiddle, Oliver
1999-06-18 12:06 ` Tanaka Akira
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=199906181036.MAA13272@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--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).