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

fix: remove ignore options from rg and fd search #1043

Merged
merged 2 commits into from
May 16, 2024

Conversation

chriszarate
Copy link
Contributor

When yazi's hidden option is true, it passes --no-ignore to fd and rg. However, ignore files have no actual relation to hidden files. They often contain entries like node_modules that users want to ignore in all situations.

Example use case: In a code project, I turn on the hidden option to navigate to configuration files like .editorconfig and search their contents with S. I do not want the hidden option to expose thousands of search results in node_modules, .gocache, or dist.

When `yazi`'s `hidden` option is true, it passes `--no-ignore` to
`fd` and `rg`. However, ignore files have no actual relation to
hidden files. They often contain entries like `node_modules` or
`vendor` that users want to ignore in all situations.
@sxyazi sxyazi changed the title Remove ignore options from rg and fd fix: remove ignore options from rg and fd search May 16, 2024
@sxyazi sxyazi merged commit f2329a3 into sxyazi:main May 16, 2024
6 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants