feat: add get_paths function to PathCompleter for starting from self.root if not None

This commit is contained in:
Paul Gauthier (aider) 2024-09-27 16:47:47 -07:00
parent 79e0b80f34
commit 9644546a65

View file

@ -600,7 +600,11 @@ class Commands:
# Create a new Document object with the text after the command
new_document = Document(after_command, cursor_position=len(after_command))
def get_paths():
return [self.root] if self.root else None
path_completer = PathCompleter(
get_paths=get_paths,
only_directories=False,
expanduser=True,
)