Skip to content
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

bug: eza hides files beginning with __ for python projects on Windows #1220

Open
jack-mil opened this issue Nov 6, 2024 · 2 comments · May be fixed by #1233
Open

bug: eza hides files beginning with __ for python projects on Windows #1220

jack-mil opened this issue Nov 6, 2024 · 2 comments · May be fixed by #1233
Labels
errors Something isn't working os › windows

Comments

@jack-mil
Copy link

jack-mil commented Nov 6, 2024

Python developers will know that 'dunder' files are common in python projects (__init__.py, __main__.py, _private_module.py, etc).
On Windows, eza consideres files starting with a underscore (_) as a hidden 'dotfile', and does not list them by default.

Technically, this is not actually a bug, as I have seen the code and PR's that added this feature.
But I think we would all agree this is undesired behavior and a common occurance for lots of (python) developers?

Seemingly 'missing' files beginning with _ has annoyed me more often then it's been useful hiding files I don't want to see.
(I don't think I have ever encountered a file on Windows starting with _ that should be hidden. Though I have certainly spent too long trying to ignore all the garbage files Windows likes to throw in my $HOME)

@jack-mil jack-mil added the errors Something isn't working label Nov 6, 2024
@jschpp
Copy link
Contributor

jschpp commented Nov 14, 2024

Just my 2 cents here but in my opinion this "feature" is more confusing than useful.
I think the times where some Applications used the _ as pseudo hidden prefix are mostly behind us. (At least I know of no Application which still does this)
It would not be that big of a problem disabling this. (May still be a breaking change though see xkcd 1172 😅 )

I'll open a PR removing this. But I think some of the maintainer may want to weigh in here

jschpp added a commit to jschpp/eza that referenced this issue Nov 14, 2024
On windows files prefixed with a `_` were being ignored because some old
applications used those files as pseudo dotfiles.

This was controversial when the feature was added way back when:
ogham/exa#820 (review)

Fixes eza-community#1220
@ChrisDenton
Copy link

For what it's worth, as a Windows user I do find this behaviour very surprising. No other tool I've used considers them hidden. And I can't think of a situation where I've wanted them to be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
errors Something isn't working os › windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants