Skip to content

(feat): Allow defining both include and exclude patterns #540

@rahulpoonia29

Description

@rahulpoonia29

Feature summary

On the web UI allow to define both include and exclude patterns

Problem / motivation

For bigger repositories giving the whole gitinjest does not makes sense as it degrades the output quality. For this I generally only select the files for the language the project is mainly written in for an overall context. But some other files which are not necessary for the implementation such as tests, configs etc are still present.
This is also the case if the project contains multiple subprojects in which you only want to select that specific folder but exclude other files such as .yml, .json etc.

For ex: Select only .ts files while excluding /tests, /examples etc

Proposed solution

Allow both include and exclude patterns to be defined simultaneously. Either the click to include/exclude in the directory structure can be disabled if both patterns are defined or left click for include and right click for exclude can be used.

Alternatives considered

Currently I have to manually check what other directories I want other then /tests, /examples and only include them as per the given example above

Which interface would this affect?

Web UI

How important is this to you?

Nice to have

Would you like to work on this feature yourself?

Maybe, if I get some guidance

Would you need support from the maintainers (if you're implementing it yourself)?

Not sure yet

Additional context, screenshots, or examples

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions