Open
Conversation
- STACK.md - Technologies and dependencies - ARCHITECTURE.md - System design and patterns - STRUCTURE.md - Directory layout - CONVENTIONS.md - Code style and patterns - TESTING.md - Test structure - INTEGRATIONS.md - External services - CONCERNS.md - Technical debt and issues
- Add SortMode enum with 6 sort options: - Name (ascending/descending) - Date (newest/oldest) - Size (largest/smallest) - Update PreviewList to maintain sort order: - SetSortMode() method to change sort - Resort() to reorder existing items - ApplySort() for new items - FindInsertIndex() for sorted insertion - Update ItemsModel with sort mode management: - SetSortMode() method - CurrentSortMode property - Apply sort when search changes - Add keyboard shortcuts in LibraryView: - Ctrl+1: Name A-Z - Ctrl+2: Name Z-A - Ctrl+3: Date (newest first) - Ctrl+4: Date (oldest first) - Ctrl+5: Size (largest first) - Ctrl+6: Size (smallest first) Note: UI sort button requires Unity Editor changes (scene modification). Keyboard shortcuts provide immediate functionality. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds ability to sort library items by name, date, or file size. Addresses both #67 and #74.
Sort Modes
Changes
SortMode.cs- Enum defining sort optionsPreviewList.cs- Maintains sorted order, supports re-sortingIPreviewList.cs- AddedSetSortMode()interface methodItemsModel.cs- Sort mode state managementLibraryView.cs- Keyboard shortcutsKeyboard Shortcuts
Ctrl+1- Name A-ZCtrl+2- Name Z-ACtrl+3- Date (newest)Ctrl+4- Date (oldest)Ctrl+5- Size (largest)Ctrl+6- Size (smallest)Note on UI
Adding a visual sort button/dropdown in the UI requires modifying Unity scene files, which cannot be done from code alone. The keyboard shortcuts provide immediate functionality. A follow-up could add a sort dropdown in the Unity Editor.
Test plan
🤖 Generated with Claude Code