Skip to content
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

fd ignores .github directory - include option available? #780

Closed
maheshsundaram opened this issue Jun 24, 2021 · 5 comments
Closed

fd ignores .github directory - include option available? #780

maheshsundaram opened this issue Jun 24, 2021 · 5 comments
Labels

Comments

@maheshsundaram
Copy link

What version of fd are you using?
fd 8.1.1

By default fd ignores hidden directories, however I would like it to not ignore the .github directory. If I use the --hidden option, then it also includes .git which I don't want. I haven't seen an option available to explicitly include a directory - is that possible? Or is there a combination of options that would mean ignore vcs but include other hidden directories?

Thank you!

@maheshsundaram maheshsundaram changed the title fd ignores .github directory - include option availabe? fd ignores .github directory - include option available? Jun 24, 2021
@sharkdp
Copy link
Owner

sharkdp commented Jun 27, 2021

Hm. I think you could use --hidden but then --exclude .git, right?

@maheshsundaram
Copy link
Author

@sharkdp Thanks for your reply! Yes I had thought of that but I don't want to include other hidden folders and files that are ignored by version control, so I thought there might be an easier way. No worries though if not

@sharkdp
Copy link
Owner

sharkdp commented Aug 8, 2021

I think you could also list the .github folder as an additional search path. There is no other way, unfortunately.

@sharkdp sharkdp closed this as completed Aug 8, 2021
@cpdean
Copy link

cpdean commented Jan 19, 2023

Requesting a feature, but would it be possible to have a file to add default CLI arguments to fd invocations? ripgrep supports a file-based config for this in ~/.ripgreprc.

That way a ~/.fdrc could have

--hidden
--exclude .git

That are added to all invocations of fd.

@sharkdp
Copy link
Owner

sharkdp commented Jun 14, 2023

please see #362

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants