branch: elpa/aidermacs
commit fe6148c0648f07293a047d1c687944d33c40f4e4
Author: tninja <tni...@gmail.com>
Commit: tninja <tni...@gmail.com>

    tiny improve: use /add to submit multiple files
---
 aider.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/aider.el b/aider.el
index 8a2acac393..a2bed3a8a1 100644
--- a/aider.el
+++ b/aider.el
@@ -167,8 +167,8 @@ COMMAND should be a string representing the command to 
send."
   (interactive)
   (let ((files (dired-get-marked-files)))
     (if files
-        (dolist (file files)
-          (aider--send-command (format "/add %s" (expand-file-name file))))
+        (let ((command (concat "/add " (mapconcat 'expand-file-name files " 
"))))
+          (aider--send-command command))
       (message "No files marked in Dired."))))
 
 ;; Function to send a custom command to corresponding aider buffer

Reply via email to