Repository navigation
feat: split the file list into Staged and Unstaged sections - #22
Merged
Merged
Conversation
Closes #21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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
±(staged + modified) files in the Staged group with their±iconj/k,Home/Endand mouse clicks; the selection follows the file by path when it moves between groupsFileEntry::group,App::list_rowsandApp::row_of🔧 Type of Change
🤖 Generated with Claude Code
Note
Low Risk
TUI-only list layout and selection mapping changes, covered by new integration tests; no git command or security behavior changes.
Overview
The Files panel now groups changes under Staged and Unstaged headers (with counts), instead of a single flat list.
App::filesis sorted with staged entries first; partially staged (±) files stay in Staged. Empty groups omit their header.Selection and scrolling were updated so
list_statetracks virtual rows (headers + files):list_rows,row_of, andclick_fileignore header clicks. Rendering pins the group header above when the first file in that group is selected at the top of the viewport.New
FileGroup/FileEntry::groupdrive grouping; integration tests cover ordering, empty groups, selection when staging moves a file between groups, mouse clicks, and on-screen header layout.Reviewed by Cursor Bugbot for commit 63fbb48. Bugbot is set up for automated code reviews on this repo. Configure here.