From b9939d4bd944eb1687fea67192afea4f33db8e2a Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 31 Oct 2024 14:45:31 -0700 Subject: [PATCH] refactor: improve file list display with section headers --- aider/io.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aider/io.py b/aider/io.py index b63a7c7a1..26abb291c 100644 --- a/aider/io.py +++ b/aider/io.py @@ -715,20 +715,21 @@ class InputOutput: # Use rich Columns for pretty output from io import StringIO - from rich.columns import Columns output = StringIO() console = Console(file=output, force_terminal=False) - read_only_files = [f"{f} (read only)" for f in sorted(rel_read_only_fnames or [])] + read_only_files = sorted(rel_read_only_fnames or []) editable_files = [f for f in sorted(rel_fnames) if f not in rel_read_only_fnames] if read_only_files: + console.print("Read only files:", style="bold") console.print(Columns(read_only_files)) if editable_files: if read_only_files: console.print() + console.print("Editable files:", style="bold") console.print(Columns(editable_files)) return output.getvalue()