Skip to content

Commit 0549e70

Browse files
committed
feat: Add /edit as an alias for /editor command
1 parent b591b64 commit 0549e70

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

aider/commands.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,6 +1482,10 @@ def cmd_editor(self, initial_content=""):
14821482
user_input = pipe_editor(initial_content, suffix="md", editor=self.editor)
14831483
if user_input.strip():
14841484
self.io.set_placeholder(user_input.rstrip())
1485+
1486+
def cmd_edit(self, args=""):
1487+
"Alias for /editor: Open an editor to write a prompt"
1488+
return self.cmd_editor(args)
14851489

14861490
def cmd_think_tokens(self, args):
14871491
"Set the thinking token budget (supports formats like 8096, 8k, 10.5k, 0.5M)"

0 commit comments

Comments
 (0)