From 6093a4c2bb87f0d6372e20f40339f86b02e52e04 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 3 Oct 2024 10:54:26 -0700 Subject: [PATCH] feat: add 'add' command completions to /read-only command --- aider/commands.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/aider/commands.py b/aider/commands.py index 8eb29b998..ce3d0b6e7 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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())