mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
feat: add 'add' command completions to /read-only command
This commit is contained in:
parent
33b45b68e2
commit
6093a4c2bb
1 changed files with 10 additions and 0 deletions
|
@ -614,6 +614,16 @@ class Commands:
|
|||
selected_style=completion.selected_style,
|
||||
)
|
||||
|
||||
# Add completions from the 'add' command
|
||||
add_completions = self.completions_add()
|
||||
for completion in add_completions:
|
||||
if completion.startswith(after_command):
|
||||
yield Completion(
|
||||
text=completion,
|
||||
start_position=adjusted_start_position,
|
||||
display=completion,
|
||||
)
|
||||
|
||||
def completions_add(self):
|
||||
files = set(self.coder.get_all_relative_files())
|
||||
files = files - set(self.coder.get_inchat_relative_files())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue