Skip to content

directory or project specific configuration files #1834

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

Closed
fidalgo opened this issue Mar 23, 2021 · 2 comments
Closed

directory or project specific configuration files #1834

fidalgo opened this issue Mar 23, 2021 · 2 comments
Labels
wontfix A feature or bug that is unlikely to be implemented or fixed.

Comments

@fidalgo
Copy link

fidalgo commented Mar 23, 2021

Describe your feature request

My request is about to add support for ripgrep to lookup for a .ripgreprc file in the current directory and then look up in the user folder.

Software projects are very different by nature, and having a global configuration of ripgrep, is not always suitable for different projects. If I'm doing a C project, I would like to exclude the build directory, but if I'm using a ruby project that build could contain some scripts that will help me, let's say create an artefact for deploy.

Having the same configuration and especially use it for the backend of a search system in the editor (my case) will lead in unsatisfactory results.

@BurntSushi
Copy link
Owner

BurntSushi commented Mar 23, 2021

Not happening, sorry. I elaborated more here: #1373 (comment)

Instead, I recommend sourcing a project specific shell script that sets the appropriate env var.

@BurntSushi BurntSushi added the wontfix A feature or bug that is unlikely to be implemented or fixed. label Mar 23, 2021
@BurntSushi BurntSushi changed the title Allow to set custom directory configuration directory or project specific configuration files Mar 23, 2021
@salim-b
Copy link

salim-b commented Jun 3, 2024

Possibly useful bit of information for future visitors here: While ripgrep doesn't support project-specific configuration files, it does actually support project-specific ignore files incl. a ripgrep-specific .rgignore file. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix A feature or bug that is unlikely to be implemented or fixed.
Projects
None yet
Development

No branches or pull requests

3 participants