-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--ignore patterns now include directory names unless --ignore-files-only #30
Conversation
Thank you for this; it will be especially useful for many projects with a "node_modules" directory (which contains a million subdirectories). I am assuming the command for that would be Good work |
Yes, just tested locally. Edit to add: For that matter, no path patterns with a slash, i.e. |
is this ready for merge? |
@simonw Could we merge this sort of functionality? Would be very helpful |
I was thinking of adding this functionality myself! Glad to see someone has already done it. |
while I like this utility, i'm concerned about it's authors commitment to maintenance (*@simonw you should appoint some maintainers or archive this 🙏🏻 ). In the meantime I've migrated my own workflows to the rust cargo based yek |
I'm going to make one change to this. The pairing of I'm going to change the |
Closes #7 closes #29 .
Changes the default behaviour of
--ignore
to also ignore directory names matching the pattern. I thought this would be the default behaviour, and apparently others did as well. You can revert to the original behaviour by adding the--include-directories
flag. Thus for:files-to-prompt my_directory --ignore "sub*"
will excludefile3.txt
,files-to-prompt my_directory --ignore "sub*" --include-directories
will not.