From 9f55e078494d99644e30d58bc87394c4ceeb048e Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 10 May 2023 15:44:51 -0700 Subject: [PATCH] wip: Changed ls command output to show files in chat with red color. --- aider/commands.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index fd540b039..c7e089aee 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -156,12 +156,11 @@ class Commands: def cmd_ls(self, args): "List files and show their chat status" - self.console.print("* denotes files included in the chat\n") files = self.coder.get_active_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"* {file}") + self.console.print(f"[red]{file} (in chat)") else: - self.console.print(f" {file}") + self.console.print(f"[red]{file}")