tweaked layout

This commit is contained in:
Paul Gauthier 2023-05-19 09:04:01 -07:00
parent 73fadbf2f8
commit 6dececea84
3 changed files with 6 additions and 4 deletions

View file

@ -180,7 +180,7 @@ class Coder:
),
]
utils.show_messages(messages, "FILES")
utils.show_messages(files_messages, "FILES")
return files_messages
def run(self):

View file

@ -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]

View file

@ -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"