-
-
Notifications
You must be signed in to change notification settings - Fork 817
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
Prioritation of global anti-ignores (includes) for fd. #655
Comments
Thank you for reporting this @soedirgo Any chance you could take a look at this? |
Sorry for the wait!
You're exactly right, the reason for the global ignore to have lower priority was because I intended it to be like |
Sorry for my late response.
As that would disable the feature of ignoring things in git files and such in its entirety.
And from this, one of the major features I also like would be forced to be disabled - since I like ignoring files with gitignore - just like I want to setup fd to "ignore a specific ignore" from the file and not all of it. Thus the:
in the
file. So I suppose this would be needed to be rewritten to some sort of feature request? Or does my problem, want thing I want to do make any sense? :) |
Hmm, that makes sense. I think the solution is to use |
Commenting on an almost 2-year-old issue (sorry...), but I'm running into the same issue with 8.4.0, and using a
Seems I am unable to ignore ignores entirely and |
One possible solution would be to have a separate config file that has a higher priority than any other ignore files. |
@jdrouhard Did you mean to put |
No, I want to ignore everything in What I'm really trying to do is let |
The way gitignore, and by extension fdignore, works is if a directory is ignored, then that directory isn't traversed at all, so it is impossible to unignore anything inside 5hay directory, unless you also unignore the directory itself. |
@jdrouhard I see. You could do this in
|
What version of
fd
are you using?Hello there, I am happy to find that you have the new feature:
But I couldn't get it to work, so let me explain my usecase and thought how I could gotten it to work.
Let's imagine I have a personal global file ending that I don't want to be checked into any of my git projects (except when I choose to force it in). Example ending with
~
as emacs backup files or in my personal example below*.bak
.My intention is to enable this file to be found with
fd
without having to completely ignore all the good ignores. While it still shall be ignored with my global gitingore.Example granted:
I have a folder with two files, one of which is my
*.bak
fileI have it such that it is ignored by my global gitignore file, which I have set myself to
~/.gitignore
.if I check git status it will correctly not find the
*.bak
file, as intended.I thought "I should add an not-ignore in my global fd-ignore file"
Which I hope I did
But still I cannot get
fd
to find thebak
file while to still have git ignoring it.My expection and hope was that
fd
would not have ignored the*.bak
file here.Is this the intended behavior?
Or maybe I have screwed up with my though process?
I read from the issue of #575
Maybe the feature is correct and works as intended, and I should request some kind of
fd-include
file or something that would take on priority?Maybe this whole question is related to #503?
The text was updated successfully, but these errors were encountered: