diff --git a/aider/commands.py b/aider/commands.py index 74a0dd956..e09760620 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -163,6 +163,11 @@ class Commands: def is_command(self, inp): return inp[0] in "/!" + def get_raw_completions(self, cmd): + cmd = cmd.replace("-", "_") + raw_completer = getattr(self, f"completions_raw_{cmd}", None) + return raw_completer + def get_completions(self, cmd): assert cmd.startswith("/") cmd = cmd[1:]