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

[FR] Add support for regex patterns in exclude #563

Open
MarArMar opened this issue Jul 16, 2024 · 4 comments
Open

[FR] Add support for regex patterns in exclude #563

MarArMar opened this issue Jul 16, 2024 · 4 comments

Comments

@MarArMar
Copy link

Is your feature request related to a problem? Please describe.
I want to exclude /node_modules/ and /.venv/ from my searches (installed libraries in software projects)

Describe the solution you'd like
In the exclude, accept regex patterns

Describe alternatives you've considered
Listing all my modules folders but there are many

@MarArMar MarArMar changed the title [FR] Add support for exclude pattern [FR] Add support for regex patterns in exclude Jul 16, 2024
@MarArMar
Copy link
Author

Ah can I just do this like "node_modules;.venv" ?

@MarArMar
Copy link
Author

MarArMar commented Jul 16, 2024

Linked to #564

I would like to be able to input paths like /run/ because I cannot do it otherwise

It could also be able to support path patterns fore example **/.bun/install/cache/** and **/.local/share/** and **/.config/BraveSoftware/** would be really useful to me

@cboxdoerfer
Copy link
Owner

Yes, more flexible exclude patterns are planned. I've also been experimenting with a better UI for that, where for each exclude entry you can specify its scope (file, folder, name, full path) and the pattern type (regex, wildcard, literal).

@MarArMar
Copy link
Author

MarArMar commented Sep 7, 2024

Together : Regex + manual input of paths would enable many use cases

In my case I would exclude all modules/libraries folders, even those that I have not created yet, with patterns

Currently because I cannot exclude easily (too many folders to exclude in many places and I create new ones regularly), I just index all files in my filesystem (millions)

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

No branches or pull requests

2 participants