From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9505 invoked from network); 12 Dec 2003 17:10:41 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 12 Dec 2003 17:10:41 -0000 Received: (qmail 20627 invoked by alias); 12 Dec 2003 17:10:27 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6870 Received: (qmail 20600 invoked from network); 12 Dec 2003 17:10:27 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 12 Dec 2003 17:10:27 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.11.8.53] by sunsite.dk (MessageWall 1.0.8) with SMTP; 12 Dec 2003 17:10:26 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id hBCHAPI04115 for zsh-users@sunsite.dk; Fri, 12 Dec 2003 09:10:25 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1031212171024.ZM4114@candle.brasslantern.com> Date: Fri, 12 Dec 2003 17:10:24 +0000 In-Reply-To: <200312121311.56353.hisham.lists@terra.com.br> Comments: In reply to Hisham Muhammad "Re: CLI Tricks" (Dec 12, 1:11pm) References: <20031212114809.GL2710@gmx.de> <200312121311.56353.hisham.lists@terra.com.br> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: CLI Tricks MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 12, 1:11pm, Hisham Muhammad wrote: } } > You want the copy-prev-word function } } 'man zshzle' told me there's a copy-prev-shell-word which does the } same but works with spaces. The manpage, however, says both are bound } to the same key by default (a documentation bug?). Yes, it's a doc bug; copy-prev-shell-word is a recent addition, and the entry for it was created by cut+paste+edit of the copy-prev-word entry. Index: Doc/Zsh/zle.yo =================================================================== --- zle.yo 23 Sep 2003 15:27:14 -0000 1.9 +++ zle.yo 12 Dec 2003 17:07:53 -0000 @@ -1184,7 +1184,7 @@ Duplicate the word to the left of the cursor. ) tindex(copy-prev-shell-word) -item(tt(copy-prev-shell-word) (ESC-^_) (unbound) (unbound))( +item(tt(copy-prev-shell-word))( Like tt(copy-prev-word), but the word is found by using shell parsing, whereas tt(copy-prev-word) looks for blanks. This makes a difference when the word is quoted and contains spaces.