Skip to content

Feature: Pasting multiple /add commands #3705

@jchavannes

Description

@jchavannes

Support pasting multiple /add file commands. For example, if you have the following:

/add file1.ext
/add file2.ext
/add file3.ext

It would be nice to be able to copy this and paste into aider and have it add the 3 files.

Currently if you try this you get this message:

No files matched '/add'. Do you want to create /add? (Y)es/(N)o [Yes]: n

Bonus if you could comment out lines, e.g.

/add file1.ext
# /add file2.ext
/add file3.ext

If you paste that it would only add file1 and file3. This makes it easier to use /drop and comments to switch which files are added.

Currently you can use:

/add
    file1.ext
    file2.ext
    file3.ext

But if you keep that in a text file you can't easily copy 2+ files, e.g. file2 and file3 (excluding file1) and add them without having to manually prefix them with /add.

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