diff --git a/aider/coder.py b/aider/coder.py index 996339f73..924e03000 100755 --- a/aider/coder.py +++ b/aider/coder.py @@ -180,7 +180,7 @@ class Coder: ), ] - utils.show_messages(messages, "FILES") + utils.show_messages(files_messages, "FILES") return files_messages def run(self): diff --git a/aider/ctags.py b/aider/ctags.py index 38c4dd8b7..4aed4e9cb 100644 --- a/aider/ctags.py +++ b/aider/ctags.py @@ -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] diff --git a/aider/prompts.py b/aider/prompts.py index 9ce7946f3..42aec8906 100644 --- a/aider/prompts.py +++ b/aider/prompts.py @@ -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"