--ignore patterns now include directory names unless --ignore-files-only#30
--ignore patterns now include directory names unless --ignore-files-only#30simonw merged 5 commits intosimonw:mainfrom
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
--ignoreto 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-directoriesflag. Thus for:files-to-prompt my_directory --ignore "sub*"will excludefile3.txt,files-to-prompt my_directory --ignore "sub*" --include-directorieswill not.