aider is AI pair programming in your terminal https://aider.chat/
Find a file
Paul Gauthier 59e664e220 Connect 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()`.
2023-05-09 09:20:58 -07:00
.flake8 debug 2023-05-08 22:55:55 -07:00
.pre-commit-config.yaml added flake8 2023-05-07 22:13:57 -07:00
coder.py Connect FileContentCompleter to prompt() call in get_input() for autocompletion.` 2023-05-09 09:20:58 -07:00
dump.py init 2023-04-19 09:03:23 -07:00
main.py WIP: Refactor CLI help messages to use $ prefix for environment variables. 2023-05-09 00:38:10 -07:00
prompts.py prompts 2023-05-09 00:38:55 -07:00
test_utils.py Add tests for strip_quoted_wrapping function in test_utils.py. 2023-05-09 08:44:35 -07:00
utils.py added docstring to strip_quoted_wrapping 2023-05-09 07:42:05 -07:00