From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26343 invoked from network); 14 Aug 2006 16:23:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,UNPARSEABLE_RELAY autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 Aug 2006 16:23:01 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 78220 invoked from network); 14 Aug 2006 16:22:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Aug 2006 16:22:54 -0000 Received: (qmail 29011 invoked by alias); 14 Aug 2006 16:22:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22607 Received: (qmail 29002 invoked from network); 14 Aug 2006 16:22:52 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 14 Aug 2006 16:22:52 -0000 Received: (qmail 77903 invoked from network); 14 Aug 2006 16:22:52 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 14 Aug 2006 16:22:50 -0000 Received: from torch.brasslantern.com ([71.121.0.226]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J3Z0069KXI17252@vms046.mailsrvcs.net> for zsh-workers@sunsite.dk; Mon, 14 Aug 2006 11:22:49 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id k7EGMmjh007610 for ; Mon, 14 Aug 2006 09:22:48 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k7EGMlN3007609 for zsh-workers@sunsite.dk; Mon, 14 Aug 2006 09:22:47 -0700 Date: Mon, 14 Aug 2006 09:22:47 -0700 From: Bart Schaefer Subject: Re: PATCH: match-word-context In-reply-to: <200608141358.k7EDwQMd024163@news01.csr.com> To: zsh-workers@sunsite.dk (Zsh hackers list) Message-id: <060814092247.ZM7608@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <200608141358.k7EDwQMd024163@news01.csr.com> Comments: In reply to Peter Stephenson "PATCH: match-word-context" (Aug 14, 2:58pm) On Aug 14, 2:58pm, Peter Stephenson wrote: } } I've decided I like it after all, but I've implemented it in a slightly } more self-contained fashion. See the documentation. One quick mostly-trivial question/comment on the docs: } +The word the cursor is on is } +matched against each var(pattern) in turn until one matches [...] } +Here are some examples of use of the tt(word-context) style to extend } +the context. } + } +example(zstyle ':zle:*' word-context "[[:space:]]" whitespace "*/*" file Will this do the correct thing when the cursor is on whitespace that is inside a quoted file name? My first thought would be to list the two patterns in the opposite order.