-
Notifications
You must be signed in to change notification settings - Fork 4
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
Option to restrict ignore to folders instead of files #5
Comments
Thanks for opening the issue! I agree, only the I don't quite understand why you'd only want folders to be ignored. Isn't |
I'll create a MWE in due time (during this week supposedly).
Get your pro arguments, here two con arguments:
Of course this might be specific to the projects and technologies one is working with (here especially: npm, composer, docker), but my major usage scenario is drop hundreds of folders like And P.S: this is an enhancement, not really a bug - it doesn't cause any problems at all. |
I think these are actually two separate issues:
You're raising some good points about the second issue. I don't think it's uncommon to ignore single files, though. Consider a I'm wondering if for your use case, it wouldn't be enough to configure |
Wonderful tool!
Due to some package managers using src mode I have a multitude of gitignored folders which have subfolders with a gitignore. This results in a listing like:
where the last entry would be sufficient
However it came to mind that this only happens with subfiles to an excluded dir, not subfolders. This led to my conclusion, that I don't get why to exclude single files anyways, as it would only be some single files and lead to a load of ignore configuration, which isn't that helpful.
So I'd suggest to have an option (or even default) to only exclude folders.
Proof that this might make sense: a screens long list if I
tmignore list | grep .DS_Store
The text was updated successfully, but these errors were encountered: