Replies: 1 comment
-
It doesn't work because % PS1='%# ' zsh -f
% bindkey | grep undo
"^X^U" undo
"^Xu" undo
"^_" undo
% If you want this to work intuitively, then you need to use the same binding in the menu as you have on the command line. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thanks for this wonderful plugin. I have this plugin set up as follows:
With this, when a partial command I type has multiple matches, I could
<Tab>
through the different matches, and when I press<Backspace>
(or<Esc>
), due to my settings it will undo the last match and restore the command line to the state where I last explicitly typed anything. However, when there is only one match, it seems that the match was automatically accepted, and the undo doesn't work. I wonder whether there is any way to make undo work even with only one match. This is because sometimes I make a typo that results in a single exact match that is not what I want (and sometimes the match is from recent file and can be quite long), and then I had to painstakingly delete the completed text.Thanks again for your help.
Beta Was this translation helpful? Give feedback.
All reactions