From: Sebastian Stein <seb_stein@gmx.de>
To: zsh-users@sunsite.dk
Subject: Re: Listing keybindings
Date: Fri, 4 Nov 2005 15:43:24 +0100 [thread overview]
Message-ID: <20051104144324.GA3168@hpfsc.de> (raw)
In-Reply-To: <20051104115558.GB481@DervishD>
DervishD <zsh@dervishd.net> [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
next prev parent reply other threads:[~2005-11-04 14:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-04 11:23 Sebastian Stein
2005-11-04 11:31 ` DervishD
2005-11-04 11:33 ` Sebastian Stein
2005-11-04 11:55 ` DervishD
2005-11-04 14:43 ` Sebastian Stein [this message]
[not found] ` <200511041614.59234.arvidjaar@mail.ru>
2005-11-04 14:44 ` Sebastian Stein
2005-11-04 11:54 ` Nikolai Weibull
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=20051104144324.GA3168@hpfsc.de \
--to=seb_stein@gmx.de \
--cc=zsh-users@sunsite.dk \
/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).