From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23869 invoked from network); 9 Jul 1999 13:28:39 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Jul 1999 13:28:39 -0000 Received: (qmail 26496 invoked by alias); 9 Jul 1999 13:28:27 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7079 Received: (qmail 26489 invoked from network); 9 Jul 1999 13:28:26 -0000 Date: Fri, 9 Jul 1999 15:28:24 +0200 (MET DST) Message-Id: <199907091328.PAA14289@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Andrej Borsenkow"'s message of Fri, 9 Jul 1999 17:21:32 +0400 Subject: Re: parameter completion in expansions Andrej Borsenkow wrote: > When completing parameter name in parameter expansions zsh automatically adds > blank or '} ' to $par / ${par . This looks like suitable default for scalars - > but I found, that with arrays I mostly want subscription (at least in > interactive shell). > > What about adding autoremoved '[' if parameter is array? (The suffix should of > course be removed if I press '}'). At the least, do nothing and leave cursor > immediately after completed name? But the `} ' is auto-removed when you type `['. And since one can also subscript scalars and sometimes don't want to subscript arrays I'd prefer to not treat them differently. > As this really depends on personal usage, may be, even some config key is > appropriate. That, however could be done. (But I don't plan to write it. Someone else?) Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de