mirror of
https://github.com/Aider-AI/aider
synced 2026-05-14 02:46:54 +02:00
59e664e220ebe34e49063e409de19d22abfe2ebc
FileContentCompleter to prompt() call in get_input() for autocompletion.`
# Context:
USER: connect the filecontentcompleter to the prompt() call in get_input, so that it autocompletes
ASSISTANT: To connect the `FileContentCompleter` to the `prompt()` call in the `get_input` method, you need to pass the `FileContentCompleter` instance as the `completer` argument in the `prompt()` function. Here's the change:
```python
coder.py
<<<<<<< ORIGINAL
if multiline_input:
line = prompt(". ")
else:
line = prompt("> ")
=======
completer_instance = FileContentCompleter(self.fnames)
if multiline_input:
line = prompt(". ", completer=completer_instance)
else:
line = prompt("> ", completer=completer_instance)
>>>>>>> UPDATED
```
This change will enable autocompletion using the `FileContentCompleter` when you call `prompt()`.
Description
Mirrored from GitHub
Languages
Python
80.1%
CSS
4%
Shell
4%
Scheme
3.9%
JavaScript
3.7%
Other
4.3%