From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12403 invoked from network); 4 Jul 1997 03:56:08 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 4 Jul 1997 03:56:08 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id XAA04027; Thu, 3 Jul 1997 23:43:02 -0400 (EDT) Resent-Date: Thu, 3 Jul 1997 23:43:02 -0400 (EDT) To: zsh-workers@math.gatech.edu Path: mason From: mason@primenet.com.au (Geoff Wing) Newsgroups: lists.zsh.workers Subject: Re: two new key commands for 3.0.4 Date: 4 Jul 1997 03:47:03 GMT Organization: PrimeNet Message-ID: References: Reply-To: mason@primenet.com.au NNTP-Posting-Host: ns1.primenet.com.au X-Newsreader: slrn (0.9.4.1 UNIX) Resent-Message-ID: <"pJHM82.0.s-.657lp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3351 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Ingo Wilken typed: :The first is almost the same as the copy-prev-word command, except that :it should ignore the word the cursor is in or adjacent to: : Case 1: ~> echo foo bar [] : Case 2: ~> echo foo bar[] : Case 3: ~> echo foo b[a]r :[] ist the cursor. copy-prev-word copies "bar" in case 1 and 2, and a "b" :in case 3. I wanted a command that copies "bar" in case 1, and "foo" in :case 2 and 3. I could not think of a better name, so I called it :copy-prev-word-skip for now. : :The second copies all arguments from the previous command, similar to :insert-last-word, but it should always copy _all_ words except the first. :I called it insert-last-args. As with insert-last-word, using this :command repeatedly cycles through the history. I don't think we really need to `bloat' zsh with almost-the-same functions, especially with 3.0.* being the `stable branch' with only bug-fixes now. I'm sure you could do both with zle and bindkey in 3.1.2-beta -- Geoff Wing [mason@primenet.com.au] Technical Manager Phone : +61-3-9818 2977 PrimeNet - Internet Consultancy Facsimile: +61-3-9819 3788 Web : Mobile : 0412 162 441