mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
fix: Display shorter path for readonly files
This commit is contained in:
parent
acc4893a7f
commit
6bfd89074c
1 changed files with 1 additions and 0 deletions
|
@ -913,6 +913,7 @@ class InputOutput:
|
|||
editable_files = [f for f in sorted(rel_fnames) if f not in rel_read_only_fnames]
|
||||
|
||||
if read_only_files:
|
||||
# for each ro file display the abs path if it is shorter than the rel ai!
|
||||
files_with_label = ["Readonly:"] + read_only_files
|
||||
read_only_output = StringIO()
|
||||
Console(file=read_only_output, force_terminal=False).print(Columns(files_with_label))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue