You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ctrl-u cuts the line, but Ctrl-y doesn't put it back in Vi-mode #1608
In Vi-mode, when using Ctrl+U to cut the current input it's impossible to use Ctrl+Y afterwards to get it back: it does nothing.
If I switch back to Emacs-mode and press Ctrl+Y, I get the data back. I can then switch back to Vi-mode.
I would expect Ctrl+Y to work the same way it works with readline, or for Ctrl+U to do nothing in Vi-mode (as the vi equivalent would be dd rather than Ctrl+U).
changed the title [-]Ctrl-u cuts the line, but Ctrl-y doesn't put it back[/-][+]Ctrl-u cuts the line, but Ctrl-y doesn't put it back in Vi-mode[/+]on Jun 29, 2026
Activity
[-]Ctrl-u cuts the line, but Ctrl-y doesn't put it back[/-][+]Ctrl-u cuts the line, but Ctrl-y doesn't put it back in Vi-mode[/+]j-bennet commentedon Aug 3, 2026
Hmm, I suspect this belongs in https://github.com/prompt-toolkit/python-prompt-toolkit. @jonathanslenders wdyt?