Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to make ESC to cancel current completion
- X-seq: zsh-users 14856
- From: Sébastien Pierre <sebastien.pierre@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: How to make ESC to cancel current completion
- Date: Sun, 21 Feb 2010 17:59:10 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=VG5KcXRl52iTkrbsovjGq59C3EtSfGpOtqTcBP+tCsM=; b=kTgR/NdZ2pNYQdfk4Q0/IlvtAx5zI6A0F1afHUmOZQe1A8womNCs0doklvZ/XNXiG0 LmR6nqTMFwRIErMdemQfakGGSc0ExyoB8NgN8PS+x6Ul33wvE9DafCAkVj008bp7rORk DlAf6VCfiVEfaUVwnOia99ycIIq4p3eonA8Jo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=sAeuEFbdoYMnJ6a+2evejency3U08UlccASrlSA+1xxVUpbHPyxpADuG/opfNfwxs2 dDHur86k8LqSobFVF12Rpj+V7v19NXz2Kg6Dpi+d5VTNQ5j3zYRFFYLct35UcLUaboXY 1njgLW8XxD2ezcu4wucKXVrQxGcLDvOY6RS0A=
- 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
Hi all,
So when zsh completes something, the cursor moves to the end of the
completed word (which is the expected behaviour). However, I often would
like to type <ESC> to undo the current completion and go back to the state
where I initially did my completion.
Here is what I am mean:
% ls <TAB> # I hit tab once to complete ls
% ls a/<TAB> # zsh completes to first matching file/dir, I hit tab to
iterate
% ls b/<TAB> # I hit tab to iterate again
% ls c/<ESC> # I hit ESC to go back to where I was before hitting tab
in the first place
% ls # typing ESC undo-ed the last 'c/' completion
is there an option to make zsh behave like this ?
Thanks !
-- Sébastien
Messages sorted by:
Reverse Date,
Date,
Thread,
Author