From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15055 invoked by alias); 21 Apr 2012 20:56:04 -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: 17023 Received: (qmail 25712 invoked from network); 21 Apr 2012 20:56:00 -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.82.171 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=s4TjSJNi3sHfKLcm61jubVjrQDoaRa4PdVRvQmjvk30=; b=FtQaV+85iz2kkFuZlBH/Hcq3q02z7VKf1xkKeuvj2KeXf0pHaUKK1b7g9HsLItteRg 3rxiqz7K6oPz5kW+KDRnwXqXjSQlo+fN8e57sI57N4hbq6+12RBATVywOa6s2tMWrq9o YGkPMWHkuD7uber1d4ozZLALu6DHrvpWn0zh81qi13GtJosJuj+fTru2qGjX7i91PCgl aLhvUG/OgwI1oRyH72pTMon6NafBUniQSCuDB2Kztu4fVZF+8yK6hxKHcWPw2Pa1Wy6i LFMYtDOHJEd8VACC12y1dIK+3IItgbaLkjpZG8HREECAQTKfbRpVINw0YtEN7ut2YzeK oyUQ== X-ProxyUser-IP: 86.6.29.42 Date: Sat, 21 Apr 2012 21:55:49 +0100 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: rake completion with colons in their names Message-ID: <20120421215549.702ffb58@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: ALoCoQkwIYQOLM45H3CB31A/UNtYkNfcs0MnFzBzzysct3ZYVzO0HpfC2e/f4uTlfC9uCHFa8kIu On Sat, 21 Apr 2012 14:55:49 +0200 Benoit Daloze wrote: > I've observed rake completion does not work fully with nested rake > tasks (having a namespace and being in the form "namespace:task"). If I've followed the chain of references properly, the problem is that "namespace" gets completed, but not "namespace:task", even if the colon is already present. > Nikolai Weibull says "Adding 'r:|[:]=*' to ones matcher-list makes it > work, but should this really be necessary?". No, it shouldn't, no other zsh completion requires a matcher to be set in order to perform the basic completion *at all*. Usually you would only require a special matcher if you want to extend the way the completion can be done or extend the things it will match against. (Allowing you to complete nam:ta to namespace:task would be a valid use of a matcher.) I would guess no one is putting much effort into maintaining _rake (I myself use Ruby but not Rails). It might be sensible to turn that target completion into a separate function as a first step to make it clearer what's going on. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/