Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Listing keybindings
- X-seq: zsh-users 9630
- From: Sebastian Stein <seb_stein@xxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Listing keybindings
- Date: Fri, 4 Nov 2005 15:43:24 +0100
- In-reply-to: <20051104115558.GB481@DervishD>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20051104112314.GB4830@xxxxxxxx> <20051104113306.GC4830@xxxxxxxx> <20051104115558.GB481@DervishD>
DervishD <zsh@xxxxxxxxxxxx> [051104 13:06]:
> > I read in one tutorial, that I can insert a command like "xfig" and press
> > ESC+? to call the alias which-command. In the turorial it is said to be the
> > default behaviour. However, I can't find this keybinding.
>
> But, according with the info manual of version 4.2.5,
> which-command exists as a widget, and by default is bound to ESC-?
>
> Try binding it to another combination just to test.
>
> And oh, BTW, you have to have a shell function, alias or command
> called "which-command", of course, because the widget calls it (in
> fact, it does exactly that, calls "which-command CMD", where "CMD" is
> the current command in the editor buffer.
The problem is, as the other poster said, that I'm using the vi keymap.
There this keybinding is not defined. I added now the following line to my
.zshrc and it works great:
bindkey '^P' which-command
Thanks for your help,
Sebastian
Messages sorted by:
Reverse Date,
Date,
Thread,
Author