branch: elpa/aidermacs commit 471673b0d491c149668e442f6685f4f485f58e54 Author: Kang Tu <tni...@gmail.com> Commit: GitHub <nore...@github.com>
Feat: Add "Go Ahead" menu item (#43) * feat: Add "Go Ahead" command to aider discussion menu and function * refactor(keybind): change go ahead key from g to y --- aider.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/aider.el b/aider.el index f657ca0703..fc9c9ad35d 100644 --- a/aider.el +++ b/aider.el @@ -128,6 +128,7 @@ Affects the system message too.") ] ["Discussion" ("q" "Ask Question" aider-ask-question) + ("y" "Go Ahead" aider-go-ahead) ("e" "Explain Function or Region" aider-function-or-region-explain) ("p" "Explain Symbol Under Point" aider-explain-symbol-under-point) ("D" "Debug Exception" aider-debug-exception) @@ -380,6 +381,12 @@ replacing all newline characters except for the one at the end." (let ((command (aider-plain-read-string "Enter exception, can be multiple lines: "))) (aider--send-command (concat "/ask Investigate the following exception, with current added files as context: " command) t))) +;;;###autoload +(defun aider-go-ahead () + "Send the command \"go ahead\" to the corresponding aider comint buffer." + (interactive) + (aider--send-command "go ahead" t)) + ;; New function to show the last commit using magit ;;;###autoload (defun aider-magit-show-last-commit ()