mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
feat: add ctrl-up/down bindings for history navigation
This commit is contained in:
parent
a6e162c37a
commit
e8fa5c36c2
1 changed files with 10 additions and 0 deletions
10
aider/io.py
10
aider/io.py
|
@ -418,6 +418,16 @@ class InputOutput:
|
|||
"Ignore Ctrl when pressing space bar"
|
||||
event.current_buffer.insert_text(" ")
|
||||
|
||||
@kb.add("c-up")
|
||||
def _(event):
|
||||
"Navigate backward through history"
|
||||
event.current_buffer.history_backward()
|
||||
|
||||
@kb.add("c-down")
|
||||
def _(event):
|
||||
"Navigate forward through history"
|
||||
event.current_buffer.history_forward()
|
||||
|
||||
@kb.add("escape", "c-m", eager=True)
|
||||
def _(event):
|
||||
event.current_buffer.insert_text("\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue