[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/aidermacs a051885a92 051/466: feat: add aider-debug functi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/aidermacs a051885a92 051/466: feat: add aider-debug function to replace newlines and send to Aider buffer with menu entry |
Date: |
Sat, 15 Mar 2025 19:10:55 -0400 (EDT) |
branch: elpa/aidermacs
commit a051885a92f939425452b7cb3536faaa072a76d1
Author: Kang Tu <kang_tu@apple.com>
Commit: Kang Tu (aider) <kang_tu@apple.com>
feat: add aider-debug function to replace newlines and send to Aider buffer
with menu entry
---
aider.el | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/aider.el b/aider.el
index 45339a4f96..b4d75c6362 100644
--- a/aider.el
+++ b/aider.el
@@ -46,6 +46,7 @@ This function can be customized or redefined by the user."
["Discussion"
("q" "Ask Question" aider-ask-question)
("t" "Architect Discussion" aider-architect-discussion)
+ ("d" "Debug Command" aider-debug) ;; Menu item for debug command
]
["Other"
("g" "General Command" aider-general-command)
@@ -169,6 +170,18 @@ COMMAND should be a string representing the command to
send."
(let ((command (aider-read-string "Enter architect command: ")))
(aider-send-command-with-prefix "/architect " command)))
+;; New function to get command from user and send it prefixed with "/debug "
+(defun aider-debug ()
+ "Prompt the user for a command and send it to the corresponding aider comint
buffer prefixed with \"/debug \",
+replacing all newline characters except for the one at the end."
+ (interactive)
+ (let ((command (read-string "Enter debug command: ")))
+ ;; Replace all newline characters with a space, except for the last one
+ (setq command (replace-regexp-in-string "\n" " " command))
+ (when (string-match-p "\n" command)
+ (setq command (concat (string-trim command) "\n"))) ;; Add a newline at
the end
+ (aider--send-command (concat "/debug " command))))
+
;; Modified function to get command from user and send it based on selected
region
(defun aider-undo-last-change ()
"Undo the last change made by Aider."
- [nongnu] elpa/aidermacs e5495ff362 387/466: Re-introduce aidermacs--comint-output-filter, simplify callback mechanism, (continued)
- [nongnu] elpa/aidermacs e5495ff362 387/466: Re-introduce aidermacs--comint-output-filter, simplify callback mechanism, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 89bfe7d4de 390/466: Refactor and unify aidermacs--send-command, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs fd786d4d24 396/466: Fix ediff-buffers not populating, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 8dc9f024d1 403/466: Fix linting, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 50e26da761 417/466: Merge pull request #49 from xplutoy/main, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 4ed1f8ddb6 429/466: Merge pull request #51 from milanglacier/refactor/vterm-aider-mode, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 451a0bb89f 426/466: refactor: add a minor mode vterm-aider-mode, and remove advices., ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 01046fcbdd 451/466: Merge pull request #67 from CeleritasCelery/mode-warning, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 4d9bff5181 464/466: Breaking change: Refactor ask/architect/code transient logic flow, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 96e732d770 465/466: Add .elpaignore, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs a051885a92 051/466: feat: add aider-debug function to replace newlines and send to Aider buffer with menu entry,
ELPA Syncer <=
- [nongnu] elpa/aidermacs 880a204f11 153/466: Fix doom emacs library installation part (#32), ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs b3eb5055f0 168/466: feat: Skip buffer switch if already in Aider buffer, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs f802473f6f 182/466: Merge pull request #56 from JulienTant/patch-1, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 4068a88f75 199/466: docs: simplify description of code modification approaches, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 99ca190e5d 214/466: docs: improve package-vc-install installation formatting, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 8ffd82740e 227/466: Fix README, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 717d2ceb51 224/466: fix: Prevent duplicate aider wrappers in multi-line messages, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 19b6250985 234/466: Streamline aider.el by extracting model and backends, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs c6a6468506 250/466: Opt-in in in for, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs ce48bd3071 261/466: Improve docstring, ELPA Syncer, 2025/03/15