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

Feature request: search in folder improvement #150

Closed
iahung3 opened this issue Mar 2, 2024 · 3 comments
Closed

Feature request: search in folder improvement #150

iahung3 opened this issue Mar 2, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request ready for release

Comments

@iahung3
Copy link

iahung3 commented Mar 2, 2024

Allow specifying the file extensions to search. For example, the directory contains both C#, Java, and C++ source files. But I only want to search in C++ source files (.h and .cpp extensions).

@iahung3 iahung3 changed the title Feature request: search in directory improvement Feature request: search in folder improvement Mar 2, 2024
@emeraldtip
Copy link

I'm fairly certain you could use Lua patterns for that

@SpartanJ
Copy link
Owner

SpartanJ commented Mar 5, 2024

File names cannot be filtered with Lua patterns because they are used for the file contents not the file path. This feature will be added.

@SpartanJ SpartanJ self-assigned this Mar 5, 2024
@SpartanJ SpartanJ added the enhancement New feature or request label Mar 5, 2024
@SpartanJ
Copy link
Owner

This has been implemented in develop. You can now include or exclude files with glob patterns, the same way that it works in sublime_text. So basically if you want to filter all .lua files you will set *.lua as a filter. To exclude we will use "-" to invert the glob pattern (same as sublime), so instead of *.lua you'll write -*.lua. You can set as many patterns as needed separated by comma. So if you want to filter for example two different extensions you can do something like *.lua,*.cpp. It's possible to filter sub-directories and any kind of path that can be filtered with glob.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ready for release
Projects
None yet
Development

No branches or pull requests

3 participants