branch: elpa/aidermacs commit a8260f8f182027006bc7d241f33f3a8295d6bf40 Author: Mingde (Matthew) Zeng <matthew...@posteo.net> Commit: Mingde (Matthew) Zeng <matthew...@posteo.net>
Update README --- README.md | 11 +++++++++-- aidermacs.el | 8 +------- introscreen.jpg | Bin 486741 -> 0 bytes introscreen.png | Bin 0 -> 520028 bytes 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9293b0568a..83a0f0ee1a 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Key features: ## Why Aidermacs? <p align="center"> - <img style='height: auto; width: 80%; object-fit: contain' src="./introscreen.jpg"> + <img style='height: auto; width: 80%; object-fit: contain' src="./introscreen.png"> </p> ### Community-Driven Development @@ -264,6 +264,8 @@ Once the transient menu is open, you can navigate and execute commands using the - `J`: Drop Current File - `k`: Drop All Files - `A`: List Added Files +- `S`: Create Session Scratchpad +- `G`: Add File to Session ##### Code Actions - `c`: General Architect @@ -353,6 +355,8 @@ With `Aidermacs`, you get: - Drop specific files from chat with `M-x aidermacs-drop-file` - View output history with `M-x aidermacs-show-output-history` - Interactively select files to add with `M-x aidermacs-add-files-interactively` + - Add content from any file to a specific session with `M-x aidermacs-add-file-to-session` + - Create a temporary file for adding code snippets or notes to the Aider session with `M-x aidermacs-create-session-scratchpad` - and more 6. Greater Configurability @@ -361,7 +365,10 @@ With `Aidermacs`, you get: 7. Streamlined Transient Menu Selection - The transient menus have been completely redesigned to encompass functionality and ergonomics, prioritizing user experience. -8. Community-Driven Development +8. Flexible Ways to Add Content + - `Aidermacs` provides multiple ways to add content to the Aider session, including adding files, creating temporary scratchpad files, and more. + +9. Community-Driven Development - `Aidermacs` is actively developed and maintained by the community, incorporating user feedback and contributions. - We prioritize features and improvements that directly benefit Emacs users, ensuring a tool that evolves with your needs. diff --git a/aidermacs.el b/aidermacs.el index 8d49501b9a..e5d39dee78 100644 --- a/aidermacs.el +++ b/aidermacs.el @@ -183,7 +183,7 @@ This is used when you want to target an existing session." (defun aidermacs-get-buffer-name (&optional use-existing) "Generate the aidermacs buffer name based on project root or current directory. -This function prefers existing sessions closer to current directory." +If USE-EXISTING is non-nil, use an existing buffer instead of creating new." (if use-existing (aidermacs-select-buffer-name) (let* ((root (aidermacs-project-root)) @@ -311,13 +311,10 @@ If USE-EXISTING is non-nil, use an existing buffer instead of creating new." (processed-command (aidermacs--process-message-if-multi-line command))) (aidermacs--send-command-redirect-backend buffer processed-command callback))) - -;; Function to switch to the aidermacs buffer ;;;###autoload (defun aidermacs-switch-to-buffer (&optional buffer-name) "Switch to the aidermacs buffer. If BUFFER-NAME is provided, switch to that buffer. -Otherwise, switch to the aidermacs buffer as determined by `aidermacs-get-buffer-name'. If the buffer is already visible in a window, switch to that window. If the current buffer is already the aidermacs buffer, do nothing." (interactive) @@ -332,7 +329,6 @@ If the current buffer is already the aidermacs buffer, do nothing." (t (message "Buffer '%s' does not exist." target-buffer-name))))) -;; Function to reset the aidermacs buffer ;;;###autoload (defun aidermacs-clear-chat-history () "Send the command \"/clear\" to the aidermacs buffer." @@ -386,7 +382,6 @@ The full command will be \"COMMAND-PREFIX <current buffer file full path>\"." (interactive) (aidermacs-act-on-current-file "/drop")) -;; Function to send a custom command to corresponding aidermacs buffer ;;;###autoload (defun aidermacs-general-command () "Prompt the user to input COMMAND and send it to the aidemracs." @@ -395,7 +390,6 @@ The full command will be \"COMMAND-PREFIX <current buffer file full path>\"." ;; Use the shared helper function to send the command (aidermacs--send-command command t))) -;; New function to get command from user and send it prefixed with "/code " ;;;###autoload (defun aidermacs-direct-change () "Prompt the user for an input and send it to aidemracs prefixed with \"/code \"." diff --git a/introscreen.jpg b/introscreen.jpg deleted file mode 100644 index 64e91d4d3e..0000000000 Binary files a/introscreen.jpg and /dev/null differ diff --git a/introscreen.png b/introscreen.png new file mode 100644 index 0000000000..b2d53be166 Binary files /dev/null and b/introscreen.png differ