[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/aidermacs 1389589e61 054/466: refactor: simplify aider-rea
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/aidermacs 1389589e61 054/466: refactor: simplify aider-read-string function by removing unnecessary newline handling |
Date: |
Sat, 15 Mar 2025 19:10:58 -0400 (EDT) |
branch: elpa/aidermacs
commit 1389589e61e6d53b02e969dcaf56614af821fa37
Author: Kang Tu <kang_tu@apple.com>
Commit: Kang Tu (aider) <kang_tu@apple.com>
refactor: simplify aider-read-string function by removing unnecessary
newline handling
---
aider.el | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/aider.el b/aider.el
index acb07917e8..94ab272b97 100644
--- a/aider.el
+++ b/aider.el
@@ -26,12 +26,7 @@
(defun aider-read-string (prompt &optional initial-input)
"Read a string from the user with PROMPT and optional INITIAL-INPUT.
This function can be customized or redefined by the user."
- (let ((input (read-string prompt initial-input)))
- ;; Replace all newline characters with spaces, except for the last one
- (setq input (replace-regexp-in-string "\n" " " input))
- (when (string-match-p "\n" input)
- (setq input (concat (string-trim input) "\n"))) ;; Add a newline at the
end
- input))
+ (read-string prompt initial-input))
;; Transient menu for Aider commands
(transient-define-prefix aider-transient-menu ()
- [nongnu] elpa/aidermacs 9392a0810b 035/466: Merge branch 'main' of github.com:tninja/aider.el, (continued)
- [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
- [nongnu] elpa/aidermacs c71f99eebc 070/466: extract sub function, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 23c0c6ed70 084/466: feat: add function to send "ask <line under cursor>" to Aider buffer, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 1389589e61 054/466: refactor: simplify aider-read-string function by removing unnecessary newline handling,
ELPA Syncer <=
- [nongnu] elpa/aidermacs 2da2317c22 091/466: feat: add Aider mode with key binding for .aider files, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs cef5d7d59b 094/466: feat: add aider-send-paragraph function and key binding in aider-mode, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs a669e70300 012/466: feat: add aider-help function with shortcut and menu entries, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs cb28b37b8b 088/466: update README, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 357740076f 013/466: update menu, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 5012f26c81 018/466: refactor: remove redundant file addition before sending command in aider.el, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs c5c867dcee 098/466: update menu, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs 5f0445e12e 080/466: Merge pull request #3 from AmaiKinono/unused-variable-cleanup, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs cfa330c742 116/466: move function to better place, ELPA Syncer, 2025/03/15
- [nongnu] elpa/aidermacs f2173e5e5d 118/466: feat: Add function to show last commit message using Magit, ELPA Syncer, 2025/03/15