-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat: add hidden
flag to traverse hidden files
#250
Conversation
3af310e
to
0af647c
Compare
ad5bcfc
to
181ec88
Compare
Thanks, I missed this PR before cutting the release. I don't know precisely what use-case you have in mind, but wouldn't it make more sense to add the flag in the |
No worries.
Oh yeah, good call. I will add a For now my use-case would be uncovering hidden files that would be matched and then manually adding them to the In the future in regards to #244. Showing files that are covered/uncovered showing by default files that are not hidden, but optionally showing coverage of hidden files as well. |
I think you're right, if it's in the config it would always format the Let's just keep the command-line flag for now, since it helps with your use-case. Until we find a better way to make those distinctions as you mention with 244 |
8d21bc9
to
a82fa8d
Compare
I have rebased on top of main in order to make use of the testing system, and added tests for the hidden flag. The |
Add the `hidden` and `no-hidden` flag that allows configuring the traversal of hidden files. Examples: ``` treefmt --hidden ``` will traverse hidden files. ``` treefmt --hidden --no-hidden ``` will not traverse hidden files, same as the default (`treefmt`). ``` treefmt --hidden --no-hidden --hidden ``` will traverse hidden files.
a82fa8d
to
2d9557d
Compare
thanks! |
Add the
hidden
andno-hidden
flag that allows configuring the traversal of hidden files.Examples:
will traverse hidden files.
will not traverse hidden files, same as the default (
treefmt
).will traverse hidden files.