From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2908 invoked by alias); 14 Apr 2010 09:15:27 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15010 Received: (qmail 7846 invoked from network); 14 Apr 2010 09:15:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Message-Id: <201004140914.o3E9EPkL009936@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users@zsh.org Subject: Re: Zsh autocompletion with no access to a parent directory In-reply-to: <361816B9-75B6-4C88-8BE9-097B33CA2283@sysctl.co.uk> References: <3663DC29-7A8F-4A0C-8262-5FFE701C8E3A@sysctl.co.uk> <20100413174533.5a15043a@news01> <361816B9-75B6-4C88-8BE9-097B33CA2283@sysctl.co.uk> Comments: In-reply-to Matt Wright message dated "Tue, 13 Apr 2010 13:33:23 -0700." Date: Wed, 14 Apr 2010 10:14:25 +0100 From: Peter Stephenson X-OriginalArrivalTime: 14 Apr 2010 09:14:26.0873 (UTC) FILETIME=[E1943A90:01CADBB2] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A_09_40_00 (www.mailcontrol.com) on 10.71.0.124 Matt Wright wrote: > > You can try telling completion to accept any directory that it knows exis= > ts > > without trying to expand the path: > >=20 > > zstyle ':completion:*' accept-exact-dirs true > >=20 > > I'm not sure if this will help in the case you're describing, however, > > since it looks like it might not be able to tell if the directory exists. > > You'll need zsh 4.3. > > Another thought, is it possible to get it to /never/ expand directories. (i.e. directories up to the / before the cursor). That would make perfect sense as an option, but unfortunately the file completion code lives in one of the ditches in the eighth circle of hell ("Malecompo", or something like that), and we're worried we won't be able to get back from there. However, you might have imagined that it wouldn't be too difficult to extend accept-exact-dirs, which in turn wasn't so difficult to add. -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom