From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10957 invoked from network); 24 Jan 1997 14:46:43 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 24 Jan 1997 14:46:43 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id JAA06980; Fri, 24 Jan 1997 09:31:08 -0500 (EST) Resent-Date: Fri, 24 Jan 1997 09:31:08 -0500 (EST) From: Zefram Message-Id: <792.199701241432@stone.dcs.warwick.ac.uk> Subject: Re: bindkey two functions To: joachimr@sco.COM (Joachim Reith) Date: Fri, 24 Jan 1997 14:31:59 +0000 (GMT) Cc: zsh-workers@math.gatech.edu In-Reply-To: <9701241129.aa22407@tedesco.london.sco.com> from "Joachim Reith" at Jan 24, 97 11:29:17 am X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]8778.02 X-US-Congress: Moronic fuckers Content-Type: text Resent-Message-ID: <"MCmi81.0._i1.hUCwo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2819 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Joachim Reith wrote: >I'm trying to bind two (or more) functions to one key, >something like > >bindkey "^U" (end-of-line && backward-delete-char) > >but everything I get are messages about "undefined function"s. > >Is this possible? The closest you can get at the moment is something like bindkey -s "^U" "^E^H" (If the functions you want to use are not already bound individually, you will have to bind them to some out-of-the-way sequence yourself.) In the future there will be a syntax similar to bindkey -t "^U" end-of-line backward-delete-char . In the nearer future, there will be a syntax similar to function delete-last-char { zle end-of-line backward-delete-char } zle -f delete-last-char bindkey "^U" delete-last-char I expect to implement this much sometime in the next few weeks (when I can find the time). -zefram