mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-05 20:25:01 +00:00
feat: Set placeholder with args in /context command
This commit is contained in:
parent
c7fe86021c
commit
be87ff0193
1 changed files with 16 additions and 6 deletions
|
@ -1167,6 +1167,16 @@ class Commands:
|
||||||
user_msg = args
|
user_msg = args
|
||||||
coder.run(user_msg)
|
coder.run(user_msg)
|
||||||
|
|
||||||
|
# When using context command, set the placeholder to the args
|
||||||
|
if edit_format == "context" and args.strip():
|
||||||
|
raise SwitchCoder(
|
||||||
|
edit_format=self.coder.edit_format,
|
||||||
|
summarize_from_coder=False,
|
||||||
|
from_coder=coder,
|
||||||
|
show_announcements=False,
|
||||||
|
placeholder=args,
|
||||||
|
)
|
||||||
|
else:
|
||||||
raise SwitchCoder(
|
raise SwitchCoder(
|
||||||
edit_format=self.coder.edit_format,
|
edit_format=self.coder.edit_format,
|
||||||
summarize_from_coder=False,
|
summarize_from_coder=False,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue