From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4415 invoked by alias); 11 Feb 2011 19:51:50 -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: 15799 Received: (qmail 7410 invoked from network); 11 Feb 2011 19:51:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at ntlworld.com designates 81.103.221.49 as permitted sender) Date: Fri, 11 Feb 2011 19:51:32 +0000 From: Peter Stephenson To: Zsh Users Subject: Re: Delete everything to the left until next whitespace? Message-ID: <20110211195132.09dd0f94@pws-pc.ntlworld.com> In-Reply-To: <4D546630.8040004@necoro.eu> References: <20110210205252.1f30d8b0@pws-pc.ntlworld.com> <4D545C18.4090803@necoro.eu> <4D546630.8040004@necoro.eu> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.0; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Cloudmark-Analysis: v=1.1 cv=R50lirqlHffDPPkwUlkuVa99MrvKdVWo//yz83qex8g= c=1 sm=0 a=KMeea8QVwx4A:10 a=IkcTkHD0fZMA:10 a=NLZqzBF-AAAA:8 a=sGVsjrDNTxtPCgD0v9EA:9 a=gd8hP4wpjLjL4wHBPYlFhLktHucA:4 a=QEXdDO2ut3YA:10 a=_dQi-Dcv4p4A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 On Thu, 10 Feb 2011 23:26:56 +0100 Ren=C3=A9 'Necoro' Neumann wrote: > Am 10.02.2011 23:14, schrieb Richard Hartmann: > > On Thu, Feb 10, 2011 at 22:43, Ren=C3=A9 'Necoro' Neumann wrote: > >=20 > >> There isn't a difference in behavior to normal > >> backward-kill-word, is there? (At least I can't see one) > >=20 > > It hangs on > >=20 > > foo bar baz \!;\'a!a: |^ew > >=20 > > at least for me. >=20 > Ah - thanks for the hint. An even easier case is already: >=20 > foo bar 'baz' |^W > --> foo bar '| >=20 > foo bar 'baz' |^ew > --> foo bar | I'm not quite sure what you're claiming, but if enter the following after zsh -f it seems to be working fine here with the latest source code and the command lines above. I don't think you've got the style set in those last examples, but I tried again without that and, though obviously the behaviour is different, it didn't seem wrong. autoload -U backward-kill-word-match zle -N backward-kill-word-space backward-kill-word-match=20 zstyle ':zle:backward-kill-word-space' word-style space bindkey '^ew' backward-kill-word-space By the way, if you're using the word context feature (I bet not many people are), you'll need the pattern zstyle ':zle:backward-kill-word-space*' word-style space That's my fault for not adding the colon and telling people to use ':*' from the outset. --=20 Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/