prompt-toolkit / python-prompt-toolkit

Library for building powerful interactive command line applications in Python
https://python-prompt-toolkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9.38k stars 716 forks source link

Multiple consecutive kills shouldn't overwrite the clipboard #537

Open asmeurer opened 7 years ago

asmeurer commented 7 years ago

In emacs and readline, when you perform multiple consecutive kills, they append to the kill ring instead of replacing it. That way you can kill multiple lines at once and yank them back. This also works for things like kill-word.

jonathanslenders commented 7 years ago

Thanks for pointing out! This needs to be fixed.

jonathanslenders commented 6 years ago

Implemented in https://github.com/jonathanslenders/python-prompt-toolkit/commit/70dc3769e2da8daa54cebd2db24307527962700e Duplicate of https://github.com/jonathanslenders/python-prompt-toolkit/issues/479

asmeurer commented 6 years ago

Was it also implemented for kill line?

jonathanslenders commented 6 years ago

Not yet. Good point. This will be for later.