mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
feat: Enable complete_while_typing in prompt_session
This commit is contained in:
parent
04afb99c54
commit
eb9c41f2a0
1 changed files with 7 additions and 1 deletions
|
@ -505,6 +505,7 @@ class InputOutput:
|
||||||
complete_style=CompleteStyle.MULTI_COLUMN,
|
complete_style=CompleteStyle.MULTI_COLUMN,
|
||||||
style=style,
|
style=style,
|
||||||
key_bindings=kb,
|
key_bindings=kb,
|
||||||
|
complete_while_typing=True,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
line = input(show)
|
line = input(show)
|
||||||
|
@ -773,7 +774,12 @@ class InputOutput:
|
||||||
res = "no"
|
res = "no"
|
||||||
else:
|
else:
|
||||||
if self.prompt_session:
|
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:
|
else:
|
||||||
res = input(question + " ")
|
res = input(question + " ")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue