yamlfix icon indicating copy to clipboard operation
yamlfix copied to clipboard

Allow users to specify path to .gitignore to allow for mass exclude

Open guillaume-troadec opened this issue 2 years ago • 1 comments

Hi,

Thanks for developing this tool, it's great and we use it every day :)

Description

I was wondering whether you could implement a feature that allows for users to specify the filepath to .gitignore, and yamlfix uses .gitignore to identify which files to include/exclude.

This would work nicely with big projects which already have a .gitignore, and would wish to avoid manually specifying each specific directory to include/exclude via the CLI.

Thanks!

guillaume-troadec avatar Nov 02 '23 03:11 guillaume-troadec

Hi @guillaume-troadec thanks for taking the time to open the issue. I think this could be added by creating a configuration (disabled by default) called --use-gitignore or something similar.

Sadly right now I only find time to maintain yamlfix, so I won't be able to develop this feature myself. However I'm open to discuss the implementation if you want to address it yourself, and to review the pull requests

lyz-code avatar Nov 03 '23 15:11 lyz-code