From 5641483a3b34828731a76deb6e8bdce47ae0cee8 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 19 May 2024 10:31:36 -0700 Subject: [PATCH] S/R will replace all matches --- aider/coders/editblock_prompts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aider/coders/editblock_prompts.py b/aider/coders/editblock_prompts.py index 08b985089..5f3a7b1fb 100644 --- a/aider/coders/editblock_prompts.py +++ b/aider/coders/editblock_prompts.py @@ -124,6 +124,9 @@ Every *SEARCH/REPLACE block* must use this format: Every *SEARCH* section must *EXACTLY MATCH* the existing source code, character for character, including all comments, docstrings, etc. +*SEARCH/REPLACE* blocks will replace *all* matching occurrences. +Include enough lines to ensure unique matches if needed. + Include *ALL* the code being searched and replaced! Only *SEARCH/REPLACE* files that the user says you can edit.