From dfdc6a382a32c8917ae9a26034950b5b1d4cc351 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 23 Jun 2023 10:14:51 -0700 Subject: [PATCH] /drop with no args drops all files --- aider/commands.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aider/commands.py b/aider/commands.py index e329e56ae..31d6f8044 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -277,6 +277,10 @@ class Commands: def cmd_drop(self, args): "Remove matching files from the chat session" + if not args.strip(): + self.io.tool_output("Dropping all files from the chat session.") + self.coder.abs_fnames = [] + for word in args.split(): matched_files = [ file