Skip to content

Commit

Permalink
Bind up and down arrow key to history-search
Browse files Browse the repository at this point in the history
  • Loading branch information
estyxx committed Sep 10, 2024
1 parent 21f1450 commit 8a29cc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/_pyrepl/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ def make_default_commands() -> dict[CommandName, type[Command]]:
+ [(c, "self-insert") for c in map(chr, range(32, 127)) if c != "\\"]
+ [(c, "self-insert") for c in map(chr, range(128, 256)) if c.isalpha()]
+ [
(r"\<up>", "up"),
(r"\<down>", "down"),
(r"\<up>", "history-search-backward"),
(r"\<down>", "history-search-forward"),
(r"\<left>", "left"),
(r"\C-\<left>", "backward-word"),
(r"\<right>", "right"),
Expand Down

0 comments on commit 8a29cc7

Please sign in to comment.