zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <zefram@dcs.warwick.ac.uk>
To: joachimr@sco.COM (Joachim Reith)
Cc: zsh-workers@math.gatech.edu
Subject: Re: bindkey two functions
Date: Fri, 24 Jan 1997 14:31:59 +0000 (GMT)	[thread overview]
Message-ID: <792.199701241432@stone.dcs.warwick.ac.uk> (raw)
In-Reply-To: <9701241129.aa22407@tedesco.london.sco.com> from "Joachim Reith" at Jan 24, 97 11:29:17 am

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


      reply	other threads:[~1997-01-24 14:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-24 11:29 Joachim Reith
1997-01-24 14:31 ` Zefram [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=792.199701241432@stone.dcs.warwick.ac.uk \
    --to=zefram@dcs.warwick.ac.uk \
    --cc=joachimr@sco.COM \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).