From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4484 invoked from network); 9 Jun 2000 07:32:53 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Jun 2000 07:32:53 -0000 Received: (qmail 13190 invoked by alias); 9 Jun 2000 07:32:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11832 Received: (qmail 13183 invoked from network); 9 Jun 2000 07:32:41 -0000 Date: Fri, 9 Jun 2000 09:32:38 +0200 (MET DST) Message-Id: <200006090732.JAA22264@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Oliver Kiddle's message of Thu, 08 Jun 2000 17:50:21 +0100 Subject: Re: PATCH: expansion Oliver Kiddle wrote: > Peter Stephenson wrote: > > > > > Glob expansion including tilde expansion was the final annoyance that > > > made me stop using _expand altogether. > > > > You might want to try again with the latest keep-prefix style (which has a > > sensible default) to see if it's any better, and what if anything remains > > to do. > > That's certainly better but it has reminded me why I stopped using > _expand: > > cd ~+ expands, even with keep-prefix. I use the autopushd option > and really like being able to do cd ~+ directories to return to a previous directory. > > Similar to this is the following: > hash -d abc=whatever > hash -d abcd=whatever > > I'm always used to completion not doing anything where there is more > than one match so I don't like it when ~abc expands ~abc. Hm, do you want it to ever expand tildes at all? We could add more fine-grained control over the kinds of substitutions tried. > One thing which I like about the way expand-or-complete works is that > for example, $HOME will expand but $HOME/ doesn't. In general, > I prefer variables and tildes not to be expanded but in some cases I > specifically want them expanded and if I press tab immediately after > something, I've probably conciously thought to do the expansion. Yes, that was always the problem with expansion -- guessing if the user wants it or not. Hm, maybe some kind of expand-ambiguous style. Does anyone have other ideas for conditions when to expand or not? Let's collect them. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de