feat: Add /edit as an alias for /editor command

This commit is contained in:
Paul Gauthier (aider) 2025-03-22 18:15:11 -07:00
parent b591b64d3f
commit 0549e7079d

View file

@ -1482,6 +1482,10 @@ class Commands:
user_input = pipe_editor(initial_content, suffix="md", editor=self.editor)
if user_input.strip():
self.io.set_placeholder(user_input.rstrip())
def cmd_edit(self, args=""):
"Alias for /editor: Open an editor to write a prompt"
return self.cmd_editor(args)
def cmd_think_tokens(self, args):
"Set the thinking token budget (supports formats like 8096, 8k, 10.5k, 0.5M)"