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

added a search bar to the file dialog #5144

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

billyb2
Copy link

@billyb2 billyb2 commented Sep 13, 2024

the search bar takes advantage of the existing filtering system in order to only show files or filders that match a specific prompt. for now, there is no way to recursively search through files, or use something like regex, though that could be added as options later.

the main internal change needed is, in order to be backwards compatible, having a list of filters instead of just a single filter at a time. that way, library users can still have many filters while including the search bar.

Description:

Fixes #4195

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

the search bar takes advantage of the existing filtering system in order
to only show files or filders that match a specific prompt. for now,
there is no way to recursively search through files, or use something
like regex, though that could be added as options later.

the main internal change needed is, in order to be backwards compatible,
having a list of filters instead of just a single filter at a time. that
way, library users can still have many filters while including the
search bar.
@billyb2 billyb2 force-pushed the billy/file_dialog_search branch from 274d464 to 828ea2f Compare September 13, 2024 23:07
@billyb2 billyb2 changed the base branch from master to develop September 13, 2024 23:07
@andydotxyz andydotxyz marked this pull request as ready for review September 14, 2024 15:45
@andydotxyz andydotxyz marked this pull request as draft September 14, 2024 15:46
@billyb2
Copy link
Author

billyb2 commented Sep 14, 2024

Still have yet to add tests to this, so I haven't put it up for proper review yet. I don't expect to change much about the implementation though, unless the fyne team want changes :)

@andydotxyz
Copy link
Member

Yeah apologies I slipped and tapped the wrong button when trying to kick off tests.
I have a backlog of reviews so won't get to this immediately.

@billyb2
Copy link
Author

billyb2 commented Sep 14, 2024

Yeah apologies I slipped and tapped the wrong button when trying to kick off tests. I have a backlog of reviews so won't get to this immediately.

no worries :). any time reviewing this is great, i appreciate the amazing work yall are doing.

@andydotxyz
Copy link
Member

Still have yet to add tests to this, so I haven't put it up for proper review yet.

Before adding more tests better fix the ones that broke ;)

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.

Add file filter input to FileOpen dialog
2 participants