mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
better /ls output
This commit is contained in:
parent
fb04016ec9
commit
ad4e1659aa
1 changed files with 8 additions and 7 deletions
|
@ -195,20 +195,21 @@ class Commands:
|
||||||
|
|
||||||
files = self.coder.get_all_relative_files()
|
files = self.coder.get_all_relative_files()
|
||||||
|
|
||||||
self.console.print("[red]Files in chat:\n")
|
|
||||||
|
|
||||||
other_files = []
|
other_files = []
|
||||||
|
chat_files = []
|
||||||
for file in files:
|
for file in files:
|
||||||
abs_file_path = os.path.abspath(os.path.join(self.coder.root, file))
|
abs_file_path = os.path.abspath(os.path.join(self.coder.root, file))
|
||||||
if abs_file_path in self.coder.abs_fnames:
|
if abs_file_path in self.coder.abs_fnames:
|
||||||
self.console.print(f"[red] {file}")
|
chat_files.append(file)
|
||||||
else:
|
else:
|
||||||
other_files.append(file)
|
other_files.append(file)
|
||||||
|
|
||||||
if not other_files:
|
if chat_files:
|
||||||
return
|
self.console.print("[red]Files in chat:\n")
|
||||||
|
for file in chat_files:
|
||||||
self.console.print("\n[red]Other repo files:\n")
|
self.console.print(f"[red] {file}")
|
||||||
|
|
||||||
|
if other_files:
|
||||||
|
self.console.print("\n[red]Repo files not in the chat:\n")
|
||||||
for file in other_files:
|
for file in other_files:
|
||||||
self.console.print(f"[red] {file}")
|
self.console.print(f"[red] {file}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue