From ee73e8eb416ba66b4ebbc4019d576e1efa43ea03 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 10 May 2023 18:02:50 -0700 Subject: [PATCH] noop --- aider/commands.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 3edf3c157..077045df9 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -127,6 +127,13 @@ class Commands: self.console.print(Text(diff)) + def completions_add(self, partial): + files = set(self.coder.get_all_relative_files()) + files = files - set(self.coder.get_inchat_relative_files()) + for fname in files: + if partial.lower() in fname.lower(): + yield Completion(fname, start_position=-len(partial)) + def cmd_add(self, args): "Add matching files to the chat" @@ -145,13 +152,6 @@ class Commands: else: self.console.print(f"[red]{matched_file} is already in the chat") - def completions_add(self, partial): - files = set(self.coder.get_all_relative_files()) - files = files - set(self.coder.get_inchat_relative_files()) - for fname in files: - if partial.lower() in fname.lower(): - yield Completion(fname, start_position=-len(partial)) - def completions_drop(self, partial): files = self.coder.get_inchat_relative_files()