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 14862
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: How to make ESC to cancel current completion
- Date: Mon, 22 Feb 2010 18:56:30 -0800
- In-reply-to: <201002220950.56594.arvidjaar@xxxxxxxxx>
- 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>
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