mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
feat: Add continuation prompt for multiline input in prompt_toolkit
This commit is contained in:
parent
56d6a47ad3
commit
57ca9cc840
1 changed files with 4 additions and 0 deletions
|
@ -536,6 +536,9 @@ class InputOutput:
|
||||||
if self.clipboard_watcher:
|
if self.clipboard_watcher:
|
||||||
self.clipboard_watcher.start()
|
self.clipboard_watcher.start()
|
||||||
|
|
||||||
|
def get_continuation(width, line_number, is_soft_wrap):
|
||||||
|
return ". "
|
||||||
|
|
||||||
line = self.prompt_session.prompt(
|
line = self.prompt_session.prompt(
|
||||||
show,
|
show,
|
||||||
default=default,
|
default=default,
|
||||||
|
@ -545,6 +548,7 @@ class InputOutput:
|
||||||
style=style,
|
style=style,
|
||||||
key_bindings=kb,
|
key_bindings=kb,
|
||||||
complete_while_typing=True,
|
complete_while_typing=True,
|
||||||
|
prompt_continuation=get_continuation,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
line = input(show)
|
line = input(show)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue