Search code examples
ipythonprompt-toolkit

How to cycle the kill ring in ipython5?


IPython 5 has a bunch of neat new editing features, but it seems like cycling the kill ring is MIA.

Cycling the kill ring is done in IPython 4 (and any other readline-based program) by issuing a Alt-y following a yank (Ctrl-y).

Is this functionality not present in IPython 5, or am I just missing it?


Here's a full example, for anyone not familiar:

Push the word "one" onto the kill ring:

one Ctrl-a Ctrl-k

Push the word "two" onto the kill ring:

two Ctrl-a Ctrl-k

After a yank (Ctrl-y, which will insert "two"), you can start cycling the kill ring with Alt-y, to get the "one" back, for example.


Solution

  • The ever-luminous @jonathanslenders (maintainer of the python-prompt-toolkit library, which is where this problem lied) has fixed the issue.