-
-
Notifications
You must be signed in to change notification settings - Fork 846
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
Global absolute paths in ignore file? #1150
Comments
I don't believe there is currently a way to do that, although I do think the ability to do so would be valuable. Too potential hurdles are
|
I'm not yet knowledgeable enough to have much valuable input... But perhaps there could be an integration with the global gitignore file. Or a check how many levels deep fd is being executed from, and then referencing all ignore paths, but taking into consideration only the ignore paths that are deeper than it's current position in the system (as those would then be the only valid ones)... Probably a lot wrong with those suggestions, but didn't want to just thow my hands up with no ideas... |
First of all, would putting an Secondly, from #763 (comment), I suspect that if you passed Finally, for parsing ignore files, and the logic for determining which files to ignore, There might be a way to do that last one. Since, it seems to work if you pass |
The issue is that the paths in eg. I will have a look into some of your other suggestions. Thanks! But yes, for future readers, the issue linked above and here give the rest of needed context and show's that it's not something easily achievable / built in. |
What version of
fd
are you using?8.4.0
I'm setting up the
ignore
file in.config/fd/
.I want to exclude a specific folder that is in my home directory.
My experience so far is that the dir paths set in
ignore
are relative to wherefd
is being executed.Is there then a way to exclude a specific folder, no matter how many levels above the folder I am?
Ideally it would be great to set
/Users/tillman/foo/
or~/foo/
in theignore
file and have that file excluded no matter where I am in my machine.Or is the only way to set:
The text was updated successfully, but these errors were encountered: