feat: Add /ok command as an alias for /code Ok

Co-authored-by: aider (gpt-5.2) <aider@aider.chat>
This commit is contained in:
Paul Gauthier
2026-02-25 06:05:11 -08:00
parent 4625ebb4b5
commit 4b48d82750

View File

@@ -1189,6 +1189,10 @@ class Commands:
"""Enter context mode to see surrounding code context. If no prompt provided, switches to context mode.""" # noqa
return self._generic_chat_command(args, "context", placeholder=args.strip() or None)
def cmd_ok(self, args):
"Alias for `/code Ok, please go ahead and make those changes.`"
return self.cmd_code("Ok, please go ahead and make those changes.")
def _generic_chat_command(self, args, edit_format, placeholder=None):
if not args.strip():
# Switch to the corresponding chat mode if no args provided