From 4e3ace6199c7a9526f5933066f5a1c151e8ddb43 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 22 Jan 2024 13:52:59 -0800 Subject: [PATCH] Added ! as alias for /run #334 --- aider/commands.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index e358a5abc..21ca5d455 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -26,8 +26,7 @@ class Commands: self.tokenizer = coder.main_model.tokenizer def is_command(self, inp): - if inp[0] == "/": - return True + return inp[0] in "/!" def get_commands(self): commands = [] @@ -65,6 +64,10 @@ class Commands: return matching_commands, first_word, rest_inp def run(self, inp): + if inp.startswith("!"): + self.do_run("run", inp[1:]) + return + res = self.matching_commands(inp) if res is None: return