[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/aidermacs c58098cd07 020/466: couple of refactoring
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/aidermacs c58098cd07 020/466: couple of refactoring |
Date: |
Sat, 15 Mar 2025 19:10:19 -0400 (EDT) |
branch: elpa/aidermacs
commit c58098cd0713c718a6fe977ec1ed476cbfb3bf33
Author: Kang Tu <kang_tu@apple.com>
Commit: Kang Tu <kang_tu@apple.com>
couple of refactoring
---
aider.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/aider.el b/aider.el
index 3c3235ccd8..bce86b7309 100644
--- a/aider.el
+++ b/aider.el
@@ -30,12 +30,12 @@
["Aider Menu"
["Aider process"
("a" "Run Aider" aider-run-aider)
- ("s" "Add Current File" aider-add-current-file)
+ ("f" "Add Current File" aider-add-current-file)
("z" "Switch to Aider Buffer" aider-switch-to-buffer)
]
["Code change"
("c" "Code Change" aider-code-command)
- ("e" "Region Code Change" aider-region-code-command)
+ ("r" "Region Code Refactor" aider-region-refactor-command)
("u" "Undo Last Change" aider-undo-last-change) ;; Menu item for undo last
change
]
["Discussion"
@@ -43,7 +43,7 @@
("t" "Architect Discussion" aider-architect-command)
]
["Other"
- ("r" "Reset Aider" aider-reset-command) ;; Menu item for reset command
+ ("s" "Reset Aider" aider-reset-command) ;; Menu item for reset command
("g" "General Command" aider-general-command)
("h" "Help Command" aider-help) ;; Menu item for help command
]
@@ -131,6 +131,7 @@ COMMAND should be a string representing the command to
send."
(interactive)
(let ((command (read-string "Enter command to send to aider: ")))
;; Use the shared helper function to send the command
+ (aider-add-current-file)
(aider--send-command command)))
;; New function to get command from user and send it prefixed with "/code "
@@ -170,7 +171,7 @@ COMMAND should be a string representing the command to
send."
(interactive)
(aider--send-command "/undo"))
-(defun aider-region-code-command ()
+(defun aider-region-refactor-command ()
"Get a command from the user and send it to the *aider* comint buffer based
on the selected region.
The command will be formatted as \"/code \" followed by the user command and
the text from the selected region."
(interactive)
- [nongnu] elpa/aidermacs 917a254054 057/466: feat: replace new-line characters with spaces in user input while preserving the final new-line in aider-read-string function, (continued)
- [nongnu] elpa/aidermacs 917a254054 057/466: feat: replace new-line characters with spaces in user input while preserving the final new-line in aider-read-string function, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs ffb8126d52 056/466: refactor: simplify aider-read-string function by removing unnecessary string processing, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 005f93e1d0 062/466: feat: Add aider-clear function and menu item above aider-reset, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs e364f7122d 065/466: feat: Add test_aider.el, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 516270aab0 069/466: update test, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 3805e94b2d 072/466: fix: require needed packages, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 2fad218234 077/466: not necessarily switching to aider buffer for each command, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs bb8e7bd6ac 087/466: Merge pull request #6 from tninja/feat_ask2__and__batch_add, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 6eca54cb2f 009/466: refactor: remove aider-drop-current-file function and its references, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 2e0dcea1c4 010/466: rename the function, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs c58098cd07 020/466: couple of refactoring,
ELPA Syncer <=
- [nongnu] elpa/aidermacs 3bebfd6dcc 029/466: add other tool, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 1d39e5720d 034/466: tiny tweak text, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 9392a0810b 035/466: Merge branch 'main' of github.com:tninja/aider.el, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 71fabfacef 037/466: docs: proofread and improve the English in the README file, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs e2f68dee26 039/466: fix: improve error handling, variable scoping, and command prefixing in aider.el, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 60ef810dbd 042/466: improve text, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs e1c6f16dd1 045/466: docs: clarify that `use-package` only loads the `aider.el` file, not all `.el` files in the repository, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs f6e9801431 046/466: Revert "docs: clarify that `use-package` only loads the `aider.el` file, not all `.el` files in the repository", ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs e905f8f1c0 048/466: docs: add comment on how to copy candidate to mini-buffer in helm-aider.el, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs b8f2180176 053/466: feat: replace new-line characters with spaces in user input while preserving the final new-line in aider-read-string function, ELPA Syncer, 2025/03/15