mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
refactor: Use EditBlockFencedPrompts directly in EditorDiffFencedPrompts
This commit is contained in:
parent
838646ac5b
commit
7dfdc2094e
2 changed files with 9 additions and 6 deletions
|
@ -94,7 +94,8 @@ from hello import hello
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
system_reminder = """# *SEARCH/REPLACE block* Rules:
|
system_reminder = """
|
||||||
|
# *SEARCH/REPLACE block* Rules:
|
||||||
|
|
||||||
Every *SEARCH/REPLACE block* must use this format:
|
Every *SEARCH/REPLACE block* must use this format:
|
||||||
1. The opening fence and code language, eg: {fence[0]}python
|
1. The opening fence and code language, eg: {fence[0]}python
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
# flake8: noqa: E501
|
# flake8: noqa: E501
|
||||||
|
|
||||||
from .editor_editblock_prompts import EditorEditBlockPrompts
|
from .editblock_fenced_prompts import EditBlockFencedPrompts
|
||||||
|
|
||||||
|
|
||||||
class EditorDiffFencedPrompts(EditorEditBlockPrompts):
|
class EditorDiffFencedPrompts(EditBlockFencedPrompts):
|
||||||
# Inherits the prompts from EditorEditBlockPrompts
|
shell_cmd_prompt = ""
|
||||||
# Specific overrides can be added here if needed
|
no_shell_cmd_prompt = ""
|
||||||
pass
|
shell_cmd_reminder = ""
|
||||||
|
go_ahead_tip = ""
|
||||||
|
rename_with_shell = ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue