Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to make ESC to cancel current completion
- X-seq: zsh-users 14866
- From: Sébastien Pierre <sebastien.pierre@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: How to make ESC to cancel current completion
- Date: Tue, 23 Feb 2010 09:37:14 -0500
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=1p167T8B6sOSaDrn2uUx3877I9ZfPAQc8HnAEAtngP8=; b=XKxd9ExLOL80ISZihvvQbebIL28/ZIOuQTFigBx+bIV+oxU/qgLh9/Bkrapn/9JYH8 +5Nv0d4f46kVckuBqn/iRw4irJNF3QCiXzipCPWrOUdtrEN+zZLIxk/MAQjjAx3mOfXC C0vMsY4NBgj6HN3NH6/1X/3rHPGmFDvgK8K+8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=ZMjin8H83J3gWxZK+mEtgwsJZ0V46Yk5K2f/U+LIUV0BuYmNa7JNoQfY0TXsDh+eTw B9AN1FQLVGcHEsI41juzc/WQym3gR6xjAnG7tFVDX6yjjSbTdfWMuf8ZLRcftB+QYTyH yORpTLG50kx4X1ep0lTOy2fIshFv62Szip0cU=
- In-reply-to: <100222185630.ZM26611@xxxxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <91790a981002211459h70f30599x41fedb93441f7ed6@xxxxxxxxxxxxxx> <100221153248.ZM24960@xxxxxxxxxxxxxxxxxxxxxx> <201002220950.56594.arvidjaar@xxxxxxxxx> <100222185630.ZM26611@xxxxxxxxxxxxxxxxxxxxxx>
Hi Bart !
It's actually even better with the 'undo', as there is no delay. I also
changed the binding from '\e' to '^U' as ESC is used to switch between modes
when vi bindings are enabled !
Thanks a lot for the update :)
-- Sébastien
2010/2/22 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
> On Feb 22, 9:50am, Andrey Borzenkov wrote:
> }
> } > In emacs style, it should work to do
> } >
> } > bindkey '\e' send-break
> }
> } Hmm ... for me ^G kills the whole input line instead of terminating
> } completion and leaving me on 'ls '; may be it depends on options ...
>
> It's somewhat unpredictable. It seems to terminate completion if the
> prefix is ambiguous but kill the whole line otherwise, but I can't pin
> down exactly when it's doing what.
>
> } OK, ^G would kill active menu-selection; but not standard menu
> } completion. I do not know if there is simple way to do the latter.
>
> I think maybe the closest you can get is to use "undo", which seems
> to successfully back up only to the point at which you hit tab.
>
> So, Sebastien, I'd change my advice:
>
> bindkey '\e' undo
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author