From c9993dccc896145da21c213b019f74197d8de95f Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 24 Oct 2024 13:46:25 -0700 Subject: [PATCH] fix: remove stray comment and add sorting note in cmd_read --- aider/commands.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 397956438..98c663725 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -678,9 +678,6 @@ class Commands: res = list(map(str, matched_files)) return res - make the same change to cmd_read @ai <====== - - def cmd_add(self, args): "Add files to the chat so aider can edit them or review them in detail" @@ -1165,6 +1162,8 @@ class Commands: self.io.tool_error("Please provide filenames or directories to read.") return + ## we need to collect all the expanded filenames, *then* sort them @ai + filenames = parse_quoted_filenames(args) for pattern in sorted(filenames): # Expand tilde for home directory