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

Add extension filter #16

Open
KarlHeitmann opened this issue Feb 21, 2023 · 0 comments
Open

Add extension filter #16

KarlHeitmann opened this issue Feb 21, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@KarlHeitmann
Copy link
Owner

Add an extra argument to cli struct, so you can add a list of extensions. rip grep will perform the search only in the file extenions provided by this list.

Example:

cargo run -- div --include_extensions "html css"

This will perform a search for "div" pattern only in the *.html and *.css files on the current directory.

I think there is a rg option that lets you perform the search in some type of files. This would be the best solution.

Another solution would be to perform the search inside all files, and then in the "Nodes" tab apply the extension filter to the results.

@KarlHeitmann KarlHeitmann added enhancement New feature or request help wanted Extra attention is needed labels Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant