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

Search files endpoint #43

Open
Boy132 opened this issue Sep 30, 2024 · 0 comments · May be fixed by #44
Open

Search files endpoint #43

Boy132 opened this issue Sep 30, 2024 · 0 comments · May be fixed by #44

Comments

@Boy132
Copy link
Member

Boy132 commented Sep 30, 2024

Currently on the new frontend, you can only search for files in the current directory. While the panel could also do a "global" search across all sub-directories it would probably be more efficient to let wings handle that. This way the panel only has to send one api request instead of recursively getting the contents of all directories.

Parameters should be the base directory where the search starts and a search term. Ideally this search should support regex or at least some simple patterns like *.txt. Returned should be a list of found file paths.

Either the wings config or the endpoint itself should have a way to configure a timeout (max search time) to prevent "endless searches".

Optionally it would be nice to blacklist certain directories, e.g. to exlude a node_modules or vendor folder.

@QuintenQVD0 QuintenQVD0 linked a pull request Oct 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant