From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23486 invoked by alias); 3 Mar 2014 17:31:16 -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: 18551 Received: (qmail 26825 invoked from network); 3 Mar 2014 17:31: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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1393867511; bh=NIj5lBRzraUoGQWK8nGvT/zNyS4T494bbGGCH6vkTnA=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=MGaRlCk1i9IZweTJs7trKzr2JeyYWWXwA9tI7vm6FWmS8Ja9Nw5O8lYWrsVptmtZZjJ3se4aAHrPa227P04FJITpBIHO5iOWp5W4IWtQMBQxWcX2A2/tw6HOlmcqLeqbJhZ9uE9KzYfP0bWV/bQXDUeDOWKESjpmgFy/3IDdUtc= X-Yahoo-Newman-Id: 511422.79619.bm@smtp119.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: _JMsWjwVM1mugj_m5UneZFwjzBMoqggK.RKKjyvlqZd2zAT PRkGD0V6DalcB4mu1izVCmTdOEaUrBld4lOzme9zNFQdYv3Gz9MIl6RMs.oB D6dVZ0Q7pSflkjzUfGytmqcDN3ddPFz6LNKn5zw57VnVjHpAtZJ0HU3fJzaL JNvy4iNPRsB9a82GAHAEO9O_DG4HlXNQ1l8ca45MgFEMTlw0Un7geEqGCmu. Qo7TclxGLTzPzfTObjkE0yR9_bXM9YwJ.QhN9hef.WM02yJFGUHqDVHLjKGc udU5hHQLsNkvX7M7nFJKRThZJmlS0SZg12us7nm8A7MLS6Phw8wgGy14I6G0 GsUZI9MGKWfKiHeovA_HaN3UqjMlJ3EKre50XhvCF1z4RIsaovXG9At2tIQy ZA98nGH73Ug213dz_plFSlb1WpgVCHzVPjgtkD_hcqc4ORfu0m.i80Lff9Sx B9PgIPMKV4JdPQnXH7PQ3wc8q2LtFNQvx_BvSlj_f1fuS8MlOpoHuMV43zdQ R7N.pkRFPur0C9pysAFyvinxBLnR4 X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- X-Rocket-Received: from kiddle.eu (okiddle@95.222.208.151 with plain [188.125.69.59]) by smtp119.mail.ir2.yahoo.com with SMTP; 03 Mar 2014 17:25:11 +0000 UTC In-reply-to: <140302121855.ZM1118@torch.brasslantern.com> From: Oliver Kiddle References: <1393780084.43996.YahooMailNeo@web194601.mail.sg3.yahoo.com> <140302121855.ZM1118@torch.brasslantern.com> To: "zsh-users@zsh.org" Subject: Re: disable substring match on command name MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2233.1393867510.1@thecus.kiddle.eu> Date: Mon, 03 Mar 2014 18:25:10 +0100 Message-ID: <2234.1393867510@thecus.kiddle.eu> Bart wrote: > zstyle -e ':completion:*' matcher-list \ > 'zstyle -a "word-${CURRENT}:completion:$curcontext" matcher-list reply' That's very nifty. I wouldn't even call "hackish". You're just allowing pattern matching to extend to fields that aren't in the standard list. My only comment is that I'd be inclined to add the custom context component at the end rather than the beginning. > zstyle -e ':completion:*' matcher-list \ > 'zstyle -a "word-${CURRENT}$LOOKUP" "$STYLE" reply' > > The example names LOOKUP and STYLE are probably not the best choices. How about simply adding an option for chained styles so you might have: zstyle -c ':completion:*' matcher-list "word-$CURRENT" Admittedly, it'd be slightly less flexible. Oliver