From ee4de6bd1cd079485224252f63f1d0f0501c6b2c Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 27 Sep 2024 16:05:40 -0700 Subject: [PATCH] feat: Add get_raw_completions method to Commands class --- aider/commands.py | 5 +++++ 1 file changed, 5 insertions(+) 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:]