mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
feat: Add labels to read-only and editable files columns
This commit is contained in:
parent
533613d92b
commit
8b9154bab0
1 changed files with 4 additions and 4 deletions
|
@ -732,13 +732,13 @@ class InputOutput:
|
|||
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))
|
||||
files_with_label = ["Read only files:"] + read_only_files
|
||||
console.print(Columns(files_with_label))
|
||||
if editable_files:
|
||||
if read_only_files:
|
||||
console.print()
|
||||
console.print("Editable files:", style="bold")
|
||||
console.print(Columns(editable_files))
|
||||
files_with_label = ["Editable files:"] + editable_files
|
||||
console.print(Columns(files_with_label))
|
||||
|
||||
return output.getvalue()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue