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