-
-
Notifications
You must be signed in to change notification settings - Fork 442
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
Stop lsd on windows from showing every regular file as green #712
Comments
You can change the color of items by using LS_COLORS, but the problem here is that the executable flag overrides the colors set based on extension. |
Is |
What do you mean by hidden flag? |
In Windows you can set a file to be Hidden. |
Oh, I was not aware of it. I don't think we are handling that as of now. |
@meain Genuinely reconsider please. Ignoring hidden files/folders would make a world of difference for Windows or WSL users. 90% of apps/programs on Windows don't use '.' or '_' for hidden files/folders like they would on *Nix, and instead rely on Windows default hidden flag. I know it's a hassle, but such is life for supporting Windows. If exa implements this before lsd, it'd be a big enough deal for me to switch despite needing to self-compile exa. |
I don't use Windows and don't have enough context to take a decision on this. How is it done in other programs like ripgrep and fd? Do they take into account hidden flag in Windows? @TeamTamoad since you are a Windows user, let me know if you have any thought around it. |
Actually, I'm a Linux user. I just happened to have a Windows laptop to test on some issue. |
Thanks @TeamTamoad for linking to rg and fd issues. I think it makes sense to have lsd respect hidden files in windows when not using PS: No pressure on your to pick it up btw. Just thought I would get your thoughts on this as I have seen you comment on Windows related issues. :D. |
While we are on the topic, my understanding is that there is no such thing as "executable" flag on windows, or is there a flag we can query which |
windows does not have an executable flag, but we could make files with an executable extention like .exe, .bat, .cmd, .ps1, etc show as green. |
I think in that case the quickest option would be to just use the option suggested by #712 (comment) . |
Oh by the way, windows has 2 different kinds of hidden files. There's normal hidden files and operating system protected files. Those NTUSER.dat files are the second kind. The user almost never has to interact with OS protected files, I've never done so once in my 10 years or so of using Windows. I would suggest making a dedicated command line flag to show OS protected files, and normal hidden files can be shown with just -a or -A. |
You are right. I like your suggestion. |
lsd --version
: lsd 0.22.0echo $TERM
: N/Aecho $LS_COLORS
: N/AWindows NTFS doesnt have POSIX file permissions, so they need to be emulated. This results in all files being marked as executable, which is necessary but annoying, since every regular file is shown in green. Is there a way to make executable files white?
The text was updated successfully, but these errors were encountered: