zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: PATCH: Completion for AUTO_CD
Date: Thu, 21 Jun 2001 10:50:03 +0000	[thread overview]
Message-ID: <1010621105003.ZM9901@candle.brasslantern.com> (raw)
In-Reply-To: <3B31CAE9.CBBE1E30@u.genie.co.uk>
In-Reply-To: <200106211030.MAA03537@beta.informatik.hu-berlin.de>

On Jun 21, 11:22am, Oliver Kiddle wrote:
} Subject: Re: PATCH: Completion for AUTO_CD
}
} > named _autocd because _command is pre-empted for the `command' builtin.
} 
} I'm not too keen on the name. I'd suggest using _command and renaming
} the existing _command, perhaps to _command_builtin (we have an
} _jobs_builtin).

I briefly considered that, but then we also ought to rename _vared to
_vared_builtin and rename _in_vared to _vared and so on and so forth,
and I just didn't want to deal with it.

As a lesser consideration, if it's named `_autocd' it's more obvious
that people who don't use autocd could replace it with something else.
 
} My initial thought on seeing your patch was that completion for autocd
} already works. This is because of the line in _command_names which adds
} executable files and directories.

Unfortunately that doesn't cover cdpath, and cdpath is the main reason I
have autocd set in the first place.

} This is there for completing commands by specifying the full path to
} them.

Yes, that's why I asked why _command doesn't call it.

} _cd should also possibly be adding usernames and parameters for the
} cdablevars option.

Hm.

On Jun 21, 12:30pm, Sven Wischnowsky wrote:
} Subject: Re: PATCH: Completion for AUTO_CD
}
} Oliver Kiddle wrote:
} 
} > It is unfortunate that we now get
} > the directories twice but I can't think of a simple fix.
} 
} I was about to mention the same when this mail came.  The only thing I
} can think of is to make _command_names use only -g, not -/ (it will
} revert to directory completion if there is no executable anyway).  Or
} maybe do that only if autocd is set and _command_names is called from
} _autocd.  Or something.

_autocd could pass an argument to _command_names, along the lines of -e.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


      reply	other threads:[~2001-06-21 10:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-21  9:17 Bart Schaefer
2001-06-21  9:54 ` Peter Stephenson
2001-06-21 10:22 ` Oliver Kiddle
2001-06-21 10:30   ` Sven Wischnowsky
2001-06-21 10:50     ` Bart Schaefer [this message]

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=1010621105003.ZM9901@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --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).