Skip to content

Feature/group by kind#2749

Open
micaljohn60 wants to merge 2 commits intoHeyPuter:mainfrom
micaljohn60:feature/group-by-kind
Open

Feature/group by kind#2749
micaljohn60 wants to merge 2 commits intoHeyPuter:mainfrom
micaljohn60:feature/group-by-kind

Conversation

@micaljohn60
Copy link
Copy Markdown

Summary

Add "Group by Kind" feature to the file manager, similar to macOS Finder's "Group By Kind" option.

What this PR does

  • Adds a "Group by Kind" option to the right-click Sort by menu
  • Groups files into categories: Folders, Images, Videos, Audio, Documents, Code, and Other
  • Persists when navigating between folders
  • Resets grouping when navigating to a different folder
  • Desktop items are not affected

Screenshots

Screenshot 2026-03-30 at 12 33 24 AM Screenshot 2026-03-30 at 12 33 06 AM

How to test

  1. Open any folder in Puter
  2. Right-click inside the folder
  3. Go to Sort by → Group by Kind
  4. Files should be grouped by their type with headers

- Add get_item_kind, get_kind_label, group_items_by_kind, sort_or_group_items functions
- Add Group by Kind option to right-click context menu in file windows
- Add CSS styles for group headers using CSS variables
- Add 'kind' as valid sort_by value in backend
- Add database migration for group_by_kind column
- Re-apply grouping after creating new folders/files
- Skip grouping for desktop items
- Reset grouping when navigating to different folder
- Add i18n translation key for group_by_kind
- Add get_item_kind, get_kind_label, group_items_by_kind, sort_or_group_items functions
- Add Group by Kind option to right-click context menu in file windows
- Add CSS styles for group headers using CSS variables
- Add 'kind' as valid sort_by value in backend
- Add database migration for group_by_kind column
- Re-apply grouping after creating new folders/files
- Skip grouping for desktop items
- Reset grouping when navigating to different folder
- Add i18n translation key for group_by_kind
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 30, 2026

CLA assistant check
All committers have signed the CLA.

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.

2 participants