Skip to content

Can't make the plugin to full edit multiple files with same prompt #129

@stoperro

Description

@stoperro

The plugin works great overall for me (for completion and editing), but I'm struggling with one scenario.

I have a prompt I use to edit whole files (by selecting whole file content and Ctrl+Shift+E) and it works suprisingly well. Now, the project has ~200 files and I wouldn't want to do it for each file one by one, each time waiting for AI to finish. I would like it to process all files while I do something else, then just fix up a few mistakes it makes in all files.

There doesn't seem to be an option to apply edit to multiple files at once, which would solve my problem (I would be fine with applying them on disk, I can correct mistakes refering to diff of course).

Thus, I've tried editing with Agent with no success. It does long analysis of what it needs to do, which usually results in him telling me there's too much files, or giving me useless script to do the edits without AI (the changes I apply are not super complex, but simple regex is not enough...).

I've tried reproducing it on smaller project with simpler prompt, still no success. Only once it actually wrote something to disk (created useless script in .go to write hardcoded comment).

To reproduce, download https://github.com/go-chi/chi, and apply agent edit:

For all .go files in the project, simply edit them with below prompt:

For functions that don't have documentation comment, add one line summary comment just before the function.

I might be really bad at using this tool/agent edit, though in reality I really don't want to even use agent, just mass apply of full file edit for each file (e.g. for files selected in file view in vs code, or better. the search where I could search for files I would like to edit with regex).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions