mirror of
https://github.com/Aider-AI/aider
synced 2026-04-25 17:15:07 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user