Skip to content

Inverse of .ignore file (like .include) or explicit include support in .ignore file #1542

@etosan

Description

@etosan

ag and some other tools support .ignore file, where one can exclude searching in specific files and directories that are of no interest.

Unfortunately in some projects, like for example gitea managed ones, there are hidden dirs like .gitea that one would like ag to search through anyway, by default, especially when dealing with IaC monorepos and similar (as action workflows live there etc).

It would be great, if one could have explicit inclusions for such dirs defined in .ignore-file for exemaple by following .gitignore's !something pattern to explicitly include given path.

Would this be possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions