-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
In the Python prompt_toolkit (which is used by IPython) multiline editing mode, the history entry is only changed when the user presses 'up' with the cursor on the first line, or 'down' with the cursor on the last line. Anywhere else it just moves the cursor up or down. Can this be added?
The likely fix area would be somewhere around here:
local-echo/lib/LocalEchoController.js
Lines 484 to 501 in 8d0b7f5
case "[A": // Up arrow | |
if (this.history) { | |
let value = this.history.getPrevious(); | |
if (value) { | |
this.setInput(value); | |
this.setCursor(value.length); | |
} | |
} | |
break; | |
case "[B": // Down arrow | |
if (this.history) { | |
let value = this.history.getNext(); | |
if (!value) value = ""; | |
this.setInput(value); | |
this.setCursor(value.length); | |
} | |
break; |
Metadata
Metadata
Assignees
Labels
No labels