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 457e5e6 commit e0d6b53
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 e0d6b53

Please sign in to comment.