PyREPL: Add ctrl+up/down for multiline history retrieving

When I enter a multiline block like a function definition and press Enter, I can press the up arrow to recall that whole block from history. Pressing up again moves the cursor up one line inside the block. But sometimes I actually want to go further back in history instead of moving within the current block.

Can we add a key combination, e.g. Ctrl+up/down, to skip the current multiline block and retrieve the previous (or next) complete history entry. This would give a clear way to choose between moving within the current block and navigating the broader history.

10 Likes

+1, Nice to have when prototyping :slight_smile:
If you’re not planning on already, would love to contribute a PR :wink: