From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19513 invoked by alias); 7 Oct 2015 11:18:33 -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: 20701 Received: (qmail 1683 invoked from network); 7 Oct 2015 11:18:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_HDRS_LCASE autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f4-f79c56d0000012ee-7d-5614fd28be6e Date: Wed, 07 Oct 2015 12:08:20 +0100 From: Peter Stephenson To: Zsh Users' List Subject: tag-order with git refs Message-id: <20151007120820.6f8a59e9@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNLMWRmVeSWpSXmKPExsVy+t/xa7oaf0XCDBpPCVjsOLmS0YHRY9XB D0wBjFFcNimpOZllqUX6dglcGefevGQtmM5T8e3CKdYGxuecXYycHBICJhLL3lxghLDFJC7c W8/WxcjFISSwlFHi37lH7CAJIYFpTBKT9glBJLYySuw4v5YNJMEioCrxaPlPFhCbTcBQYuqm 2WCTRATUJVZcb2cCsYUFFCR+PV/FCmLzCthL3D80ESzOL6AvcfXvJyaIzfYSM6+cYYSoEZT4 Mfke2ExmAS2JzduaWCFsbYkn7y6wQhykLnHj7m72CYwCs5C0zELSMgtJywJG5lWMoqmlyQXF Sem5hnrFibnFpXnpesn5uZsYIUH4ZQfj4mNWhxgFOBiVeHh/GIuECbEmlhVX5h5ilOBgVhLh bfwOFOJNSaysSi3Kjy8qzUktPsQozcGiJM47d9f7ECGB9MSS1OzU1ILUIpgsEwenVANjxrYr z+2UUna4abh4WZ36mmojMWN39RL7oK5o6R3cF2JYrI4d288Vq7X1Zeud5NLn+53ZNnb7b/xd X/FaWlnOcGVAjd5XhvMT5Ti7TdS6lh5Ze5YrLytSZsY/ud1XjvG9NxUVFFmj6VknKTn7yetL YWnT+/gMFN89qrK71ja9XTL98BH77mAlluKMREMt5qLiRAAOCLazPgIAAA== Things that have been bugging me for ages but I never dared ask about... Notionally this is a user question, though I suspect it's soon going to drift down the implementation. How do I limit completion after "git checkout" to showing local heads first (i.e. branches I actually use)? If you can demonstrably get this to work (please don't waste time posting untried solutions), feel free to give tne answer and ignore the following. =46rom the output of ^xh it should be something like zstyle ':completion:*:complete:git-checkout:*' tag-order heads-local and certainly the look-up of the style and context appears to be working. But the match against the actual tag doesn't work (proved by adding "-" to the end, which gives me no matches at all). The manual implies patterns should work as tags (i.e. values of the tag-order style) but I'm getting bizarre results --- e,g '[a-z]*' gives me everything, '[a-m]*' gives me nothing, '[n-z]*' gives me only options and nothing else (all these with the "-" element appended for debugging purposes). Indeed, 'o*' gives me options. However, '[a-np-z]*' gives all the matches (other than options) I expect. Further playing suggests patterns are just not working how I expect. Not that I'm particularly interested in patterns, I'm just trying to narrow down the tags by hook or by crook and failing dismally. This is related to stuff down in the bowels where it calls "comptry -m tag", so I'm unlikely to be able to get to the bottom of this in a finite lifetime. pws