1

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.

Thomas K
  • 39,200
  • 7
  • 84
  • 86
mgalgs
  • 15,671
  • 11
  • 61
  • 74
  • This has been driving me crazy the last few weeks. I finally did some research and it seems that, as of now, [python-prompt-toolkit](https://github.com/jonathanslenders/python-prompt-toolkit) which IPython is now using doesn't yet have a `kill-ring` and thus `M-y` is not yet implemented (see [this comment](https://github.com/ipython/ipython/issues/9425#issuecomment-215948436) on IPython issues). – jarvisschultz Nov 09 '16 at 14:02
  • I just posted [an issue on python-prompt-toolkit](https://github.com/jonathanslenders/python-prompt-toolkit/issues/414)... maybe if I find a few extra minutes I'll try to dig in and figure out what it would take to implement this. – jarvisschultz Nov 09 '16 at 14:06

1 Answers1

0

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

mgalgs
  • 15,671
  • 11
  • 61
  • 74