mirror of
https://github.com/Aider-AI/aider
synced 2026-04-25 17:15:07 +02:00
feat: Allow /ok command to accept optional arguments
Co-authored-by: aider (gpt-5.2) <aider@aider.chat>
This commit is contained in:
@@ -1196,8 +1196,12 @@ class Commands:
|
|||||||
return self._generic_chat_command(args, "context", placeholder=args.strip() or None)
|
return self._generic_chat_command(args, "context", placeholder=args.strip() or None)
|
||||||
|
|
||||||
def cmd_ok(self, args):
|
def cmd_ok(self, args):
|
||||||
"Alias for `/code Ok, please go ahead and make those changes.`"
|
"Alias for `/code Ok, please go ahead and make those changes.` (any args are appended)"
|
||||||
return self.cmd_code("Ok, please go ahead and make those changes.")
|
msg = "Ok, please go ahead and make those changes."
|
||||||
|
extra = (args or "").strip()
|
||||||
|
if extra:
|
||||||
|
msg = f"{msg} {extra}"
|
||||||
|
return self.cmd_code(msg)
|
||||||
|
|
||||||
def _generic_chat_command(self, args, edit_format, placeholder=None):
|
def _generic_chat_command(self, args, edit_format, placeholder=None):
|
||||||
if not args.strip():
|
if not args.strip():
|
||||||
|
|||||||
Reference in New Issue
Block a user