From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24447 invoked from network); 3 Dec 1999 15:35:02 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Dec 1999 15:35:02 -0000 Received: (qmail 15723 invoked by alias); 3 Dec 1999 15:34:55 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8880 Received: (qmail 15715 invoked from network); 3 Dec 1999 15:34:52 -0000 Date: Fri, 3 Dec 1999 16:34:51 +0100 (MET) Message-Id: <199912031534.QAA02907@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Bart Schaefer"'s message of Fri, 3 Dec 1999 15:24:02 +0000 Subject: Re: PATCH: better control for _cd Bart Schaefer wrote: > On Dec 3, 2:13pm, Sven Wischnowsky wrote: > } Subject: PATCH: better control for _cd > } > } This makes _cd use the tags local-directories and path-directories to > } decide if those in the cwd and/or those in $cdpath should be > } completed. > > Is that really a good idea? In the event that the same name can be > resolved either way, "cd" is always going to change to the same one. > Seeing completions only for one or the other case would be misleading. Hm. Isn't that a matter of personal taste? And note that the patch keeps the default behaviour of showing/using all directories. You have to change _sort_tags explicitly to get only one of them, and when you do that you probably know what you are doing. It would probably only be irritating if you choose to try *only* the directories in $cdpath or to try them *first*. Do you think that our users need to be saved from this? I.e. should we change _cd to explicitly disallow this? > This is one case where I think it should always complete them all and > always order the groups the way that "cd" is going to choose them > (that is, local directories first). The patch also makes directories in `.' be listed first... maybe that'll help? And with menu-completion you'll get those names first, of course. Err... one could say that the patch does the ordering you want. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de