mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
tweaked layout
This commit is contained in:
parent
73fadbf2f8
commit
6dececea84
3 changed files with 6 additions and 4 deletions
|
@ -180,7 +180,7 @@ class Coder:
|
|||
),
|
||||
]
|
||||
|
||||
utils.show_messages(messages, "FILES")
|
||||
utils.show_messages(files_messages, "FILES")
|
||||
return files_messages
|
||||
|
||||
def run(self):
|
||||
|
|
|
@ -12,6 +12,8 @@ def get_tags_map(filenames, root_dname=None):
|
|||
|
||||
tags = []
|
||||
for filename in filenames:
|
||||
if filename.endswith(".md"):
|
||||
continue
|
||||
tags += get_tags(filename, root_dname)
|
||||
if not tags:
|
||||
return
|
||||
|
@ -39,7 +41,7 @@ def split_path(path, root_dname):
|
|||
path = os.path.relpath(path, root_dname)
|
||||
path_components = path.split(os.sep)
|
||||
res = [pc + os.sep for pc in path_components[:-1]]
|
||||
res.append(path_components[-1])
|
||||
res.append(path_components[-1] + ":")
|
||||
return res
|
||||
|
||||
|
||||
|
@ -62,7 +64,7 @@ def get_tags(filename, root_dname):
|
|||
if signature:
|
||||
last += " " + signature
|
||||
|
||||
res = split_path(path)
|
||||
res = split_path(path, root_dname)
|
||||
if scope:
|
||||
res.append(scope)
|
||||
res += [kind, last]
|
||||
|
|
|
@ -79,7 +79,7 @@ files_content_gpt_no_edits = "I wasn't able to see any properly formatted edits
|
|||
|
||||
files_content_local_edits = "I made some changes to the files myself."
|
||||
|
||||
repo_content_prefix = "Here is a map showing all the other files and their content:\n\n"
|
||||
repo_content_prefix = "Here is a map showing all the other files and key content:\n\n"
|
||||
|
||||
files_content_prefix = (
|
||||
"You can propose changes to *only* these files (ask if you need to see others):\n\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue