diff --git a/aider/coder.py b/aider/coder.py index 6d04408f1..2e71da1b5 100755 --- a/aider/coder.py +++ b/aider/coder.py @@ -170,13 +170,22 @@ class Coder: if self.repo is not None: other_files = set(self.get_all_abs_files()) - set(self.abs_fnames) if other_files: - files_listing = get_tags_map(other_files) + if self.use_ctags: + files_listing = get_tags_map(other_files) + ctags_msg = " with selected ctags content" + else: + files_listing = "\n".join(self.get_rel_fname(ofn) for ofn in other_files) + ctags_msg = "" + if self.abs_fnames: other = "other " else: other = "" - repo_content = prompts.repo_content_prefix.format(other=other) + repo_content = prompts.repo_content_prefix.format( + other=other, + ctags_msg=ctags_msg, + ) repo_content += files_listing if all_content: diff --git a/aider/prompts.py b/aider/prompts.py index 0518b5978..7ae37e8e3 100644 --- a/aider/prompts.py +++ b/aider/prompts.py @@ -86,7 +86,7 @@ files_content_prefix = ( ) repo_content_prefix = ( - "Here is a map showing all the {other}files and selected ctags content. You *must* ask with the" + "Here is a map showing all the {other}files{ctags_msg}. You *must* ask with the" " full path of the file before suggesting edits to these files:\n\n" )