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

New comment processing command proposal #2760

Open
aweis89 opened this issue Jan 2, 2025 · 0 comments
Open

New comment processing command proposal #2760

aweis89 opened this issue Jan 2, 2025 · 0 comments

Comments

@aweis89
Copy link
Contributor

aweis89 commented Jan 2, 2025

Issue

Proposing we add a new command /comments <files> which tells Aider to explicitly process the comments in those files. The motivating reasons for this are:

For plugin integration

  • If a plugin is auto-starting Aider when detecting qualifying comments (as is the case with this Neovim plugin), it can tell Aider to process a file with comments written prior to Aider's startup.
  • Plugins can send files with valid comments to Aider so that Aider doesn't need to watch files and search them on each write. IDEs already running tree-sitter can use it to query for comments, without needing to search the entire file, and only if it has qualifying comments can they send the command /comments <file> to Aider. (They also can use write hooks to trigger that command instead of using file watchers.)

For regular use

  • Improve Aider's performance by not using --watch-files (or excluding various large files) so that Aider doesn't need to search those files on each write but instead can be told to explicitly to process those file's comments when prompted by this command.
  • If Aider missed a file change and the user is in the Aider terminal, they can trigger Aider explicitly to process that file without needing to go back and re-save the file

Version and model info

No response

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

No branches or pull requests

1 participant