◐ Shell
clean mode source ↗

[wip] PyREPL: Add ctrl+up/down for multiline history by edvilme · Pull Request #151569 · python/cpython

@edvilme

Currently, the up/down keys move the cursor in that direction inside the
current code block until it reaches the beginning/end, then it goes to
the previous/next. However, when traversing history with lots of
multiline blocks, this can be a cumbersome process.

This PR introduces the ability to traverse history one block at a time
using the CTRL+Up or CTRL+Down keys.

Originated from https://discuss.python.org/t/pyrepl-add-ctrl-up-down-for-multiline-history-retrieving/107779