From 0549e7079d8dbf8d763e079e1aceee452badbf18 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 22 Mar 2025 18:15:11 -0700 Subject: [PATCH] feat: Add /edit as an alias for /editor command --- aider/commands.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aider/commands.py b/aider/commands.py index 79fd549c7..fe55ef279 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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)"