mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
aider is AI pair programming in your terminal
https://aider.chat/
![]() # Context: USER: move history_file from global into Coder ASSISTANT: To move the `history_file` variable from the global scope into the `Coder` class, you can add it as a class attribute and update its usage accordingly. ```python coder.py <<<<<<< ORIGINAL history_file = ".coder.history" try: readline.read_history_file(history_file) except FileNotFoundError: pass ======= class Coder: history_file = ".coder.history" def __init__(self, main_model, files, pretty): # ... try: readline.read_history_file(self.history_file) except FileNotFoundError: pass # ... >>>>>>> UPDATED ``` ```python coder.py <<<<<<< ORIGINAL readline.write_history_file(history_file) ======= readline.write_history_file(self.history_file) >>>>>>> UPDATED ``` |
||
---|---|---|
.flake8 | ||
.pre-commit-config.yaml | ||
coder.py | ||
dump.py | ||
prompts.py |