Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add magit rebase style file operation in aider-prompt-mode, and send block line by line command #109

Merged
merged 4 commits into from
Mar 18, 2025

Conversation

tninja
Copy link
Owner

@tninja tninja commented Mar 18, 2025

The key C-c C-y will put /add to the line the cursor located, if there is no command ahead; otherwise, it will cycle through /add, /read-only, /drop.

Screenshot from 2025-03-17 20-04-37

After we are happy about it, use C-c C-b to send these file command one by one to aider session.

The PR also improve the git diff file generation. Now it can pull change for a given commit sha.

Kang Tu and others added 4 commits March 17, 2025 20:05
… function

refactor: Use magit-rev-verify to validate commit hash existence

refactor: Improve commit hash validation in branch diff generation function

refactor: Add detailed messages for branch diff generation process

refactor(diff-gen): optimize branch comparison and remove auto-pulling
refactor: Improve command handling with explicit conditional logic

refactor(commands): reorganize command lists and remove manual input option
, and add block-by-line sending capability with C-c C-b binding

feat: Add interactive function to cycle Aider file commands

feat: Add `aider-prompt-cycle-file-command` function with keybinding

refactor: Change keybinding for cycle file command from C-c C-a to C-c C-y

refactor: Enhance file command cycling to work anywhere in the line

feat: Add C-c C-b binding to send paragraph block line by line and update help text

feat: Add `aider-send-block-by-line` function and bind to `C-c C-b`
tweak doc
@tninja tninja merged commit a585ea3 into main Mar 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant