* bindkey two functions
@ 1997-01-24 11:29 Joachim Reith
1997-01-24 14:31 ` Zefram
0 siblings, 1 reply; 2+ messages in thread
From: Joachim Reith @ 1997-01-24 11:29 UTC (permalink / raw)
To: zsh-workers
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?
Thanks
/Joachim
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bindkey two functions
1997-01-24 11:29 bindkey two functions Joachim Reith
@ 1997-01-24 14:31 ` Zefram
0 siblings, 0 replies; 2+ messages in thread
From: Zefram @ 1997-01-24 14:31 UTC (permalink / raw)
To: Joachim Reith; +Cc: zsh-workers
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-01-24 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-24 11:29 bindkey two functions Joachim Reith
1997-01-24 14:31 ` Zefram
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).