From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4147 invoked from network); 13 Mar 2002 20:37:33 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Mar 2002 20:37:33 -0000 Received: (qmail 12316 invoked by alias); 13 Mar 2002 20:37:26 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16826 Received: (qmail 12302 invoked from network); 13 Mar 2002 20:37:25 -0000 To: John Beppu Cc: zsh-workers@sunsite.dk Subject: Re: (backward-)kill-argument -- reformulation of the problem References: <20020313190956.GA24175@Ax9.org> From: mmc@maruska.dyndns.org (Michal =?iso-8859-2?q?Maru=B9ka?=) Date: 13 Mar 2002 21:23:27 +0100 In-Reply-To: <20020313190956.GA24175@Ax9.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii John Beppu writes: > > i want to: * kill filenames w/ spaces: e.g. this\ is\ file.txt > rm *[\ ]* Hi John, i feel very sorry, that i expressed myself very bad. My problem is completely different from what i, unfortunately, described, and you answered. I don't want to operate on my filesystem. I want to have a command in the ZLE (Zsh' interactive line editor), which resembles backward-kill-word, but kills a whole argument. So imagine, i write ( _ is the cursor position): $ cat this\ is\ file.txt_ and now i want: $ cat just\ another\ document.html Currently i have to backward-kill-word 3 times (and write the new argument). > > * maybe even the bracketed part: find { -name '*.h' } Here i assume, that Zsh (in its completion system) "knows" that -name option of find(1) takes 1 argument. So i could delete all this constraint. In other words, from (and the cursor could be under the text "-name '*.h'") $ find -name '*.h'_ i want to obtain $ find If i was writing it in lisp/scheme, i could be typing $ (find (-name '*.h') ....) and just delete the inner-most sexp. TIA