branch: elpa/aidermacs commit 6eca54cb2f298db73e58ac8e98a73960a0e30544 Author: Kang Tu (aider) <kang...@apple.com> Commit: Kang Tu (aider) <kang...@apple.com>
refactor: remove aider-drop-current-file function and its references --- aider.el | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/aider.el b/aider.el index 43698b47aa..0fcefc17c5 100644 --- a/aider.el +++ b/aider.el @@ -29,7 +29,6 @@ (define-key map (kbd "a") 'aider-run-aider) (define-key map (kbd "z") 'aider-switch-to-buffer) (define-key map (kbd "s") 'aider-add-current-file) - (define-key map (kbd "p") 'aider-drop-current-file) (define-key map (kbd "c") 'aider-send-command) (define-key map (kbd "d") 'aider-code-command) (define-key map (kbd "q") 'aider-ask-question) @@ -52,7 +51,6 @@ ("a" "Run Aider" aider-run-aider) ("s" "Add Current File" aider-add-current-file) ("z" "Switch to Aider Buffer" aider-switch-to-buffer) - ("p" "Drop Current File" aider-drop-current-file) ] ["Code change" ("d" "Code Change" aider-code-command) @@ -143,19 +141,6 @@ COMMAND should be a string representing the command to send." ;; Use the shared helper function to send the command (aider--send-command command))))) -;; New function to send "/drop <current buffer file full path>" to *aider* buffer -(defun aider-drop-current-file () - "Send the command \"/drop <current buffer file full path>\" to the *aider* comint buffer." - (interactive) - ;; Ensure the current buffer is associated with a file - (if (not buffer-file-name) - (message "Current buffer is not associated with a file.") - (let ((file-path (expand-file-name buffer-file-name))) - ;; Construct the command - (let ((command (format "/drop %s" file-path))) - ;; Use the shared helper function to send the command - (aider--send-command command))))) - ;; Function to send a custom command to *aider* buffer (defun aider-send-command (command) "Prompt the user to input COMMAND and send it to the *aider* comint buffer.