branch: elpa/aidermacs commit fed1338c0d85c682ed1ff1f5371d6217465153b8 Author: Kang Tu (aider) <kang...@apple.com> Commit: Kang Tu (aider) <kang...@apple.com>
fix: remove aider-drop-current-file function and its references --- aider.el | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/aider.el b/aider.el index fdb0eebc7e..49f3a723ba 100644 --- a/aider.el +++ b/aider.el @@ -29,9 +29,7 @@ (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 "d") '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) (define-key map (kbd "t") 'aider-architect-command) (define-key map (kbd "e") 'aider-region-code-command) @@ -52,10 +50,8 @@ ("a" "Run Aider" aider-run-aider) ("s" "Add Current File" aider-add-current-file) ("z" "Switch to Aider Buffer" aider-switch-to-buffer) - ("d" "Drop Current File" aider-drop-current-file) ] ["Code change" - ("d" "Code Change" aider-code-command) ("e" "Region Code Change" aider-region-code-command) ("u" "Undo Last Change" aider-undo-last-change) ;; Menu item for undo last change ] @@ -143,19 +139,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.