mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
aider: Added CompleteStyle
import statement to getinput.py
and added reserve_space_for_menu
argument to prompt
function.
# Context: USER: import CompleteStyle ASSISTANT: To import `CompleteStyle`, you need to add the import statement at the beginning of the `aider/getinput.py` file. Here's the change: ```python aider/getinput.py <<<<<<< ORIGINAL from prompt_toolkit.history import FileHistory ======= from prompt_toolkit.history import FileHistory from prompt_toolkit.completion import CompleteStyle >>>>>>> UPDATED ```
This commit is contained in:
parent
227e64b6a8
commit
dc7ce8e788
1 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,7 @@ from prompt_toolkit.styles import Style
|
|||
from prompt_toolkit import prompt
|
||||
from prompt_toolkit.completion import Completer, Completion
|
||||
from prompt_toolkit.history import FileHistory
|
||||
|
||||
from prompt_toolkit.completion import CompleteStyle
|
||||
from rich.console import Console
|
||||
import sys
|
||||
import time
|
||||
|
@ -55,6 +55,7 @@ def canned_input(show_prompt):
|
|||
|
||||
|
||||
def get_input(history_file, fnames, commands):
|
||||
|
||||
fnames = list(fnames)
|
||||
if len(fnames) > 1:
|
||||
common_prefix = os.path.commonprefix(fnames)
|
||||
|
@ -84,6 +85,8 @@ def get_input(history_file, fnames, commands):
|
|||
completer=completer_instance,
|
||||
history=FileHistory(history_file),
|
||||
style=style,
|
||||
reserve_space_for_menu=4,
|
||||
#complete_style=CompleteStyle.MULTI_COLUMN,
|
||||
)
|
||||
if line.strip() == "{" and not multiline_input:
|
||||
multiline_input = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue