From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13671 invoked by alias); 16 Jul 2012 19:58:58 -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: 17176 Received: (qmail 6633 invoked from network); 16 Jul 2012 19:58:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) 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 autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 74.125.83.43 is neither permitted nor denied by SPF record at ntlworld.com) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-proxyuser-ip:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=as4HQ8P4eMmpisnm+IyW54mLe0cZe0KA5bHyNSm9Aks=; b=IQkHkCIKTMFp32WQbR3tC4zfKP8HjFnqZ78RFXCJBXqMxVfEhSSkIm2VNCszou7DDG DWOzUsYoX2tD0/TS839Csv7/dC7uj55H2qKkm3ywIESgGUgdYmcegIZhjW3+5ygIHKkA TAJAQAh0bUc7H/Asq/MVqaB/TjDruo8DCnwcAiDRye2ymYwgpkoo7isyK5xBUf0/Ck9u 9INWJPSiDBRYs8O8vZzh8pwoGOu+ClevnggNASwhlsJhUVAc7SMZu0xn8GXjX2XpfbCQ b0yghH6q4WiOj+u1zhxTvsE1K8jkKRXaxfJ7g/NQ149deATj1F77fQkcqXhgksHTA55Y np3w== X-ProxyUser-IP: 86.6.29.42 Date: Mon, 16 Jul 2012 20:28:32 +0100 From: Peter Stephenson To: Zsh Users Subject: Re: autoexpand dirs to depth n Message-ID: <20120716202832.5a663a6e@pws-pc.ntlworld.com> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmc8GIZ3XRyGRRALV7HdqWo4aVXz03svfMhLvShaMxqWTqsE/UjAvgqtkTjiE8mtjW6ZvTf On Sun, 15 Jul 2012 20:49:44 +0200 Eric Smith wrote: > How do I configure completion to display all directory expansions to a depth > of n? > > Then when I identify the branch I want to expand, I want to use > globbing so that > > when in > /var/www $ *oo*az > will match something like > /foo/bar/baz I'm not aware of any shortcuts to having to type at least the right number of slashes. Once you've done that, the completion system is able to complete the strings after the slashes at each level, but only if you have a string to match at the start. Getting it to guess how many slashes to insert is tricky; the logic is already complicated when it knows where they go. So the best you can do here is //*oo/*az with globcomplete enabled (and I don't know how well that works in practice; in particular whether it completes between // is style dependent). -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/