-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
[Feature Request] Ignore files in .hidden #470
Comments
I would vote for this feature to be opt-in if it was implemented. |
I disagree. I'm not aware of any standard preventing me from creating a file with that name without any further intentions. I would expect the file Have you checked how many tutorials out there explain dot files by creating file called The closest thing I could come up with on the spot is If a user knows about this feature and wants to use it, it is trivial to alias the corresponding command line flag as default. If you already go ahead an create |
Well if you happen to have a file or symlink in a directory named the exact thing most file managers read, I don't think exa is your biggest problem, this is embedded in gtk and KDE file pickers, file managers, almost everything but ls reads this by default already, at this point it's as universal as it can be without being a strict standard. But a config option is better than nothing. |
@ShayBox: I think you vastly underestimat the proportion of |
I'll note here that I think |
I can’t find any standard about this. It works on Nautilus, Nemo and Thunar, but not in Dolphin (I just tested it), and I guess the file is supposed to contain globs but what kind? If I were to be convinced of giving it a try to implement this, it wouldn’t be the default behavior though since I don’t think it’s well-known, and someone liking this behavior could easily set up an alias anyway. |
What about aliasing newls(){
if [ -f ".hidden" ]
then
exa --git-ignore -I $(tr '\n' '|' < .hidden) $@
else
exa --git-ignore $@
fi
}
alias ls=newls |
Some Linux file managers hide files and folders listed in a file named
.hidden
, which can be useful for those cases when you can't change the name of the file or folder. It would be cool if exa could do this.The text was updated successfully, but these errors were encountered: