branch: elpa/aidermacs commit e0e77f387423bdad93db43aadc3e5cf9a4e935da Author: Kang Tu <kang...@apple.com> Commit: Kang Tu <kang...@apple.com>
add aider-send-line-under-cursor --- aider.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/aider.el b/aider.el index a2bed3a8a1..e9d8116864 100644 --- a/aider.el +++ b/aider.el @@ -256,6 +256,13 @@ The command will be formatted as \"/architect \" followed by the user command an (let ((line (thing-at-point 'line t))) (aider--send-command (concat "/ask " (string-trim line))))) +;; New function to send "<line under cursor>" to the Aider buffer +(defun aider-send-line-under-cursor () + "Send the command \"ask <line under cursor>\" to the Aider buffer." + (interactive) + (let ((line (thing-at-point 'line t))) + (aider--send-command (string-trim line)))) + (provide 'aider) ;;; aider.el ends here