mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
feat: add get_paths function to PathCompleter for starting from self.root if not None
This commit is contained in:
parent
79e0b80f34
commit
9644546a65
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue