Skip to content

Filebrowser: sort and instant search - #68

Open
Elompenta wants to merge 2 commits into
deflating:mainfrom
Elompenta:filebrowser-sort
Open

Filebrowser: sort and instant search#68
Elompenta wants to merge 2 commits into
deflating:mainfrom
Elompenta:filebrowser-sort

Conversation

@Elompenta

Copy link
Copy Markdown
Contributor

Summary

  • Adds a sort control to the file browser header — Name / Date / Size, opened as a popup menu (same pattern as the model picker)
  • Adds instant search — a search field filters the currently loaded directory listing client-side as you type
  • Directories always sort first regardless of the chosen sort mode; sort preference persists in localStorage

Closes #51
Closes #49

Test plan

  • Open the file browser sidebar, click the sort icon, switch between Name/Date/Size and confirm the list re-orders (directories always first)
  • Type into the new search field and confirm the list filters instantly by filename
  • Navigate into a subdirectory and confirm the search field resets

Closes deflating#51. The server already returns mtime and size per entry; the
client only rendered the fixed directories-first/alphabetical order.
A header button now cycles the sort mode client-side, persisted in
localStorage.

Co-Authored-By: Claude Sonnet 5
Closes deflating#49. Client-side substring filter over the already-loaded
directory listing, matching the left sidebar's search behavior.

Also swaps the header-right icon order (file browser toggle now
rightmost) and turns the sort control into a popup menu matching the
model-picker pattern instead of a plain button/select.

Co-Authored-By: Claude Sonnet 5
This was referenced Sep 9, 2026
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.

Filebrowser: sorting Filebrowser: instant search

1 participant