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

Redesign file browser searching #7130

Merged
merged 31 commits into from
May 30, 2024

Conversation

sakertooth
Copy link
Contributor

Redesigns the file browser searching functionality. In particular, the design was now made to be more extensible to allow other tasks we may want to run asynchronously in the future by introducing a ThreadPool class. All the file search related logic is now encapsulated as its own function object named FileSearch that can be used together with a ThreadPool.

@sakertooth sakertooth marked this pull request as ready for review May 9, 2024 13:02
include/ThreadPool.h Outdated Show resolved Hide resolved
include/ThreadPool.h Show resolved Hide resolved
include/FileSearch.h Outdated Show resolved Hide resolved
src/core/FileSearch.cpp Show resolved Hide resolved
src/core/FileSearch.cpp Outdated Show resolved Hide resolved
The search will get destroyed when replacing it with the new one through the assignment
…ers or not

So the search was broken and missing entries because
the code was not searching through the directories that *did* match the filters. This is also why the search
was oddly fast and completed very quickly.
@tresf tresf self-requested a review May 17, 2024 21:01
@tresf
Copy link
Member

tresf commented May 17, 2024

I did some quick UI testing in a Linux VM. This is quite fabolous.

search_bar_min2.mov

@DomClark DomClark requested review from DomClark and removed request for DomClark May 23, 2024 16:02
@DomClark
Copy link
Member

I looked over the bits I wanted to check (specifically the thread pool) and I think it's fine for now. The only thing I would add is to make sure that text files have a trailing line feed. GitHub marks those that don't in the diff with a no-entry symbol at the end of the file.

@sakertooth sakertooth merged commit bfeb781 into LMMS:master May 30, 2024
9 checks passed
@sakertooth sakertooth deleted the redesign-file-browser-search branch May 30, 2024 01:47
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 this pull request may close these issues.

None yet

5 participants