/drop with no args drops all files

This commit is contained in:
Paul Gauthier 2023-06-23 10:14:51 -07:00
parent f32580caf2
commit dfdc6a382a

View file

@ -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