cubiclesoft / js-fileexplorer

A zero dependencies, customizable, pure Javascript widget for navigating, managing, uploading, and downloading files and folders or other hierarchical object structures on any modern web browser.
254 stars 42 forks source link

Search option #29

Open bjorno43 opened 3 weeks ago

bjorno43 commented 3 weeks ago

The project is quite impressive, but I'm really missing a file / folder search option. Personally I'd choose a server side array (or other form of storage) so you can index everything and get results fast instead of having to do recursive iteration over all locations to find something.

cubiclesoft commented 3 weeks ago

If the item is in the current folder, you can currently type in the name of the item you are looking for on the keyboard to jump directly to that item. I guess that feature won't work on mobile devices though.

A possible solution could be to create a custom toolbar button that passes the current folder plus the search term to the server and it returns a search results folder that the widget displays. However, if a user starts navigating inside it, that could cause a number of issues.