How do I make Escape exit the menu and discard my selection? #328
-
What do you want?When scrolling through the command history it would be nice to have a quick way to escape from the search which would also clear the command text. I would propose hitting Why do you want this?Currently its a little inconvenient, as if you're searching through the history and want to get out, you have to hit Who else would benefit from this?I think everyone. It would be a QOL improvement. Explain in detail how you would expect this to workGiven the following situation:
When I perform the following steps:
Then I expect the following to happen:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Just add this to your bindkey -M menuselect -s '^[' '^G^_' Note that this won't work correctly when you're in the middle of doing a multi-select. |
Beta Was this translation helpful? Give feedback.
Just add this to your
.zshrc
file:Note that this won't work correctly when you're in the middle of doing a multi-select.