branch: elpa/aidermacs
commit 687d9eff7ce1476c9f02a47673f9ac4b2722ccf5
Author: Kang Tu <tni...@gmail.com>
Commit: GitHub <nore...@github.com>

    Fix: Make aider.el work with tramp (#39)
    
    * fix: update required Emacs version to 26.1 and fix local file path 
handling
    
    * fix(aider): increase sleep delay for process communication stability
    
    * fix: correct minimum Emacs version requirement in README
    
    * docs(readme): simplify helm installation steps
---
 README.org | 22 ++++------------------
 aider.el   |  7 ++++---
 2 files changed, 8 insertions(+), 21 deletions(-)

diff --git a/README.org b/README.org
index dec27e97d9..856073242c 100644
--- a/README.org
+++ b/README.org
@@ -47,6 +47,8 @@ You can add your own Elisp functions to support your specific 
use cases. Feel fr
 
 * Installation
 
+- Emacs need to be >= 26.1
+
 ** Vanilla Emacs Installation
 - [[https://aider.chat/docs/install.html][Install aider]]
 - Install the dependency [[https://github.com/magit/transient][Transient]] 
using your package manager.
@@ -100,27 +102,11 @@ The aider prefix is "A".
 
 Helm enables fuzzy searching functionality for command history prompts
 
-You can enable Helm-based completion in two ways:
-
-- 1. Using use-package:
+You can enable Helm-based completion with the following code:
 
 #+BEGIN_SRC emacs-lisp
-  ;; Basic aider installation
   (use-package aider
-    :straight (:host github :repo "tninja/aider.el" :files ("aider.el")))
-
-  ;; Optional helm support
-  (use-package aider-helm
-    :straight (:host github :repo "tninja/aider.el" :files ("aider-helm.el"))
-    :after (aider helm))
-#+END_SRC
-
-- 2. Manual loading:
-
-#+BEGIN_SRC emacs-lisp
-  ;; Load helm support after both aider and helm are loaded
-  (with-eval-after-load 'helm
-    (require 'aider-helm))
+    :straight (:host github :repo "tninja/aider.el" :files ("aider.el" 
"aider-helm.el")))
 #+END_SRC
   
 *** Aider script interactive mode: aider-minor-mode
diff --git a/aider.el b/aider.el
index 1a7d109d97..db1fa69f25 100644
--- a/aider.el
+++ b/aider.el
@@ -2,7 +2,7 @@
 
 ;; Author: Kang Tu <tni...@gmail.com>
 ;; Version: 0.2.0
-;; Package-Requires: ((emacs "25.1") (transient "0.3.0"))
+;; Package-Requires: ((emacs "26.1") (transient "0.3.0"))
 ;; Keywords: convenience, tools
 ;; URL: https://github.com/tninja/aider.el
 
@@ -252,7 +252,7 @@ Ensure proper highlighting of the text in the buffer."
                                                      'rear-nonsticky t))))
         ;; Send raw text to process
         (process-send-string process chunk)
-        (sleep-for 0.1)
+        (sleep-for 0.2)
         ;; (message "Sent command to aider buffer: %s" chunk)
         (setq pos end-pos)))))
 
@@ -292,7 +292,8 @@ COMMAND should be a string representing the command to 
send."
   ;; Ensure the current buffer is associated with a file
   (if (not buffer-file-name)
       (message "Current buffer is not associated with a file.")
-    (let ((command (format "%s %s" (aider--get-add-command-prefix) 
(expand-file-name buffer-file-name))))
+    (let ((command (format "%s %s" (aider--get-add-command-prefix)
+                           (file-local-name (expand-file-name 
buffer-file-name)))))
       ;; Use the shared helper function to send the command
       (aider--send-command command))))
 

Reply via email to