Skip to content

Commit

Permalink
feat: Enable complete_while_typing in prompt_session
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier committed Dec 17, 2024
1 parent 04afb99 commit eb9c41f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aider/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ def _(event):
complete_style=CompleteStyle.MULTI_COLUMN,
style=style,
key_bindings=kb,
complete_while_typing=True,
)
else:
line = input(show)
Expand Down Expand Up @@ -773,7 +774,12 @@ def prompt_ask(self, question, default="", subject=None):
res = "no"
else:
if self.prompt_session:
res = self.prompt_session.prompt(question + " ", default=default, style=style)
res = self.prompt_session.prompt(
question + " ",
default=default,
style=style,
complete_while_typing=True,
)
else:
res = input(question + " ")

Expand Down

0 comments on commit eb9c41f

Please sign in to comment.