Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Can't use bindkey -c
- X-seq: zsh-users 756
- From: Peter Stephenson <pws@xxxxxx>
- To: stephen.talley@xxxxxxxxxxxxxxx (Steve Talley), zsh-users@xxxxxxxxxxxxxxx (Zsh users list)
- Subject: Re: Can't use bindkey -c
- Date: Mon, 24 Mar 1997 09:19:17 +0100
- In-reply-to: "Steve Talley"'s message of "Sat, 22 Mar 1997 12:40:32 MET." <199703221940.MAA01919@xxxxxxxxxxxxxxxxxxxxxx>
Steve Talley wrote:
> Does zsh's "bindkey" allow the same functionality as tcsh's "bindkey
> -c"? This allows a keystroke to be bound to a builtin or external
> command instead of an editor command. This is useful when I'd like to
> run a command and see it's output without having to destroy the
> contents of the command-line buffer.
>
> Example:
>
> bindkey -c "^P" pwd
Currently the way to do this is:
bindkey -s "^P" "^qpwd\n"
in which the ^q saves the line on the buffer stack, which is restored
after "pwd\n" is executed as input (this assumes emacs bindings; it's
actually a little better to have push-input bound to something and use
that instead of the ^q).
Maybe other ways will be forthcoming.
--
Peter Stephenson <pws@xxxxxx> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author