zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: better control for _cd
Date: Fri, 3 Dec 1999 16:34:51 +0100 (MET)	[thread overview]
Message-ID: <199912031534.QAA02907@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Fri, 3 Dec 1999 15:24:02 +0000


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


             reply	other threads:[~1999-12-03 15:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-03 15:34 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-12-03 13:13 Sven Wischnowsky
1999-12-03 15:24 ` Bart Schaefer

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=199912031534.QAA02907@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).