Closed j-lakeman closed 6 months ago
Not sure if it helps your use case, but you could do the other way around, and use --no-ignore-vcs
, then specify specific .gitignore files to use with --ignore-file
Cheers for the support!
Thing is in my case I only want to exclude a single .gitignore
, but keep the individual ones in subfolders and the global git
as well as fd
one while also having hidden files enabled.
So what I'm doing atm as a workaround is calling fd --hidden --no-ignore-vcs
.
I have also tried fd -u --ignore-file .config/fd/ignore
.
But with both approaches, I would need to re-enable dozens of .gitignore
files buried somewhere in the file system. Hope this helps to clarify!
I see.
That seems like a somewhat unusual use case to me, so I'm not sure it would be worth adding that functionality.
Fair enough.
Is it doable to implement a fdrc
like ripgrep
does (https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#configuration-file) instead? That way I could work around my issue and a lot of other possible use cases other folks might have could be covered.
See #362
As a current workaround you can use an alias, or a wrapper script
Cheers! Closing in favour of #362
Would be quite handy to be able to ignore the content of selectable
.gitignore
files. Maybe by listing them in the.fdignore
, for example:path_to/.gitignore
I came across this issue after integratingfd
deeper into my workflows e.g. in combination withfzf
.Nevertheless great application!