From b66ac52388a44d27a24761b5954cab7c9953c701 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 10 May 2023 15:48:31 -0700 Subject: [PATCH] changed /ls output format --- aider/commands.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index c7e089aee..7d4ce4446 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -158,9 +158,20 @@ class Commands: files = self.coder.get_active_files() + self.console.print("[red]Files in chat:\n") + + other_files = [] for file in files: abs_file_path = os.path.abspath(os.path.join(self.coder.root, file)) if abs_file_path in self.coder.fnames: - self.console.print(f"[red]{file} (in chat)") + self.console.print(f"[red] {file}") else: - self.console.print(f"[red]{file}") + other_files.append(file) + + if not other_files: + return + + self.console.print("\n[red]Other repo files:\n") + + for file in other_files: + self.console.print(f"[red] {file}")