mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
wip: Changed ls command output to show files in chat with red color.
This commit is contained in:
parent
a793e9ac56
commit
9f55e07849
1 changed files with 2 additions and 3 deletions
|
@ -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}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue