mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 11:45:00 +00:00
feat: Add dot after newline in multiline input mode
This commit is contained in:
parent
cfb2c1f62a
commit
83b401b241
1 changed files with 3 additions and 2 deletions
|
@ -504,7 +504,7 @@ class InputOutput:
|
||||||
"Handle Enter key press"
|
"Handle Enter key press"
|
||||||
if self.multiline_mode:
|
if self.multiline_mode:
|
||||||
# In multiline mode, Enter adds a newline
|
# In multiline mode, Enter adds a newline
|
||||||
event.current_buffer.insert_text("\n")
|
event.current_buffer.insert_text("\n. ")
|
||||||
else:
|
else:
|
||||||
# In normal mode, Enter submits
|
# In normal mode, Enter submits
|
||||||
event.current_buffer.validate_and_handle()
|
event.current_buffer.validate_and_handle()
|
||||||
|
@ -517,7 +517,7 @@ class InputOutput:
|
||||||
event.current_buffer.validate_and_handle()
|
event.current_buffer.validate_and_handle()
|
||||||
else:
|
else:
|
||||||
# In normal mode, Alt+Enter adds a newline
|
# In normal mode, Alt+Enter adds a newline
|
||||||
event.current_buffer.insert_text("\n")
|
event.current_buffer.insert_text("\n. ")
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
if multiline_input:
|
if multiline_input:
|
||||||
|
@ -680,6 +680,7 @@ class InputOutput:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@restore_multiline
|
||||||
def confirm_ask(
|
def confirm_ask(
|
||||||
self,
|
self,
|
||||||
question,
|
question,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue