mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05: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:
|
||||
self.clipboard_watcher.start()
|
||||
|
||||
def get_continuation(width, line_number, is_soft_wrap):
|
||||
return ". "
|
||||
|
||||
line = self.prompt_session.prompt(
|
||||
show,
|
||||
default=default,
|
||||
|
@ -545,6 +548,7 @@ class InputOutput:
|
|||
style=style,
|
||||
key_bindings=kb,
|
||||
complete_while_typing=True,
|
||||
prompt_continuation=get_continuation,
|
||||
)
|
||||
else:
|
||||
line = input(show)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue