TeamAmaze / AmazeFileManager

Material design file manager for Android
https://teamamaze.xyz
GNU General Public License v3.0
5.33k stars 1.58k forks source link

Search in Recent Files #4179

Open liushuqi-2022 opened 5 months ago

liushuqi-2022 commented 5 months ago

Describe the bug Search in recent files not working

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Recent files'
  2. Click on Search button
  3. Enter search text
  4. See error

Expected behavior The file just searched should be displayed.

Screenshots imageimage

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

Obolrom commented 1 month ago

@VishnuSanal @liushuqi-2022 Search generally works fine. However, by default is used MainActivityViewModel::basicSearch method for search. When we click "Try indexed search" or "Try deep search" then MainActivityViewModel::indexedSearch or MainActivityViewModel::deepSearch is used. And those methods work fine.

Maybe we should change the default search method to "indexed"?

https://github.com/user-attachments/assets/c289597a-adcd-463e-ade6-be21b76f50e6

VishnuSanal commented 1 month ago

hi @Obolrom, thanks for your interest in help develop amaze! but, I didn't quite get you -- the issue is with search items not being consistent when searching in recent files. this must be fixed if we check the current location (CUSTOM path in the enum) & target the search to the recent files.

(question to self: would this also work for quick access files? 🤔)