From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: -subscript- completion for assoc array
Date: Mon, 15 Mar 1999 16:10:32 +0100 [thread overview]
Message-ID: <9903151510.AA47477@ibmth.df.unipi.it> (raw)
Is there some math mode behaviour still built into subscript completion? I
can't complete the -*- elements of _comps, although they are listed all
right immediately after the [ and are entered OK with menu completion.
% $_comps[-def<TAB>
tries to complete variable names. Significantly, it claims it's allowing
two errors and the set I get is
fignore hep_env_sh perl5lib testhash vers
foo keys ret texinputs
fpath lf sets ufmt
so I suspect the - has been chucked out at some point. (Since you're
wondering :-), the list consists of variables starting in f (delete two
characters) or with e second (replace two characters) or with f second
(delete one and transpose the other two).)
I don't think it matters much, but I'm now using the slightly modified
_subscript below. (It does show I shouldn't get the variable names at all
in this case and hence compstate[parameter] isn't set properly, either.)
#defcomp -subscript-
if [[ ${(Pt)${compstate[parameter]}} = assoc* ]]; then
compgen -k "( ${(kP)${compstate[parameter]}} )"
else
_compalso -math-
fi
--
Peter Stephenson <pws@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
next reply other threads:[~1999-03-15 15:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-15 15:10 Peter Stephenson [this message]
1999-03-15 16:00 Sven Wischnowsky
1999-03-15 16:18 ` Peter Stephenson
1999-03-16 10:49 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=9903151510.AA47477@ibmth.df.unipi.it \
--to=pws@ibmth.df.unipi.it \
--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).