From 358cbc9388036c532b69d635f6e453c76a42a7c6 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 29 Oct 2024 13:58:25 -0700 Subject: [PATCH] feat: add filename autocompletion to /load and /save commands --- aider/commands.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aider/commands.py b/aider/commands.py index 708998c8d..09220d9d6 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -1246,6 +1246,9 @@ class Commands: output = f"{announcements}\n{settings}" self.io.tool_output(output) + def completions_raw_load(self, document, complete_event): + return self.completions_raw_read_only(document, complete_event) + def cmd_load(self, args): "Load and execute commands from a file" if not args.strip(): @@ -1270,6 +1273,9 @@ class Commands: self.io.tool_output(f"\nExecuting command: {cmd}") self.run(cmd) + def completions_raw_save(self, document, complete_event): + return self.completions_raw_read_only(document, complete_event) + def cmd_save(self, args): "Save commands to a file that can reconstruct the current chat session's files" if not args.strip():