zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: PATCH: Re: completing commands
Date: Wed, 03 Sep 2003 17:55:09 +0200	[thread overview]
Message-ID: <27164.1062604509@gmcs3.local> (raw)
In-Reply-To: <1030903143538.ZM19062@candle.brasslantern.com>

Bart wrote:
> On Sep 3,  3:57pm, Oliver Kiddle wrote:
> }
> } In addition to that, it refuses to complete local directories in the
> } current directory.
> 
> Really?  I get them completed in 4.0.6, even without your patch.  Can
> you show an example of the before and after behavior?

I get them completed in 4.0 too.

The cause is the last part of 15945. It prevents (in _cd) local
directory completion in command completion because "that's already
handled by _command_names". However, if you look at _command_names, you
will see that it only completes directories if  
  [[ -n "$path[(r).]" || $PREFIX = */* ]]

So my patch makes _cd again complete local directories when that
condition is not true.

That part of 15945 was an attempt to solve the problem Peter reported
but it only covered one of the two places where _cd was completing
directories.

Oliver


  reply	other threads:[~2003-09-03 15:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-03 10:44 Peter Stephenson
2003-09-03 13:57 ` PATCH: " Oliver Kiddle
2003-09-03 14:35   ` Bart Schaefer
2003-09-03 15:55     ` Oliver Kiddle [this message]
2003-09-03 14:30 ` 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=27164.1062604509@gmcs3.local \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-workers@sunsite.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).