Skip to content

feat(review): stage and discard hunks, files, and lines with zoom states - #80

Draft
lettertwo wants to merge 10 commits into
review/02-rendererfrom
review/03-staging-zoom
Draft

feat(review): stage and discard hunks, files, and lines with zoom states#80
lettertwo wants to merge 10 commits into
review/02-rendererfrom
review/03-staging-zoom

Conversation

@lettertwo

@lettertwo lettertwo commented Sep 4, 2026

Copy link
Copy Markdown
Owner

This PR adds the staging verbs and the view states that give them a direction. The cursor now drives navigation with scroll derived from it, zoom cycles split/combined/unstaged/staged with a per-file gate, and the combined view colors cells by staged-ness attribution. Hunks, files, and line selections stage and discard through the queue, a footer notice reports refusals and confirmations, and a tick poll on the index signature refreshes the diff when something outside the TUI writes the index.

The design is the staging-verbs entry in the RFC milestones: verbs act only in the unstaged and staged panes, the runtime stays synchronous, and a multi-hunk line selection is merged into one patch because libgit2 rejects per-hunk patches whose numbering assumes the others applied.

@lettertwo lettertwo changed the title review/03 staging zoom feat(review): stage and discard hunks, files, and lines with zoom states Sep 4, 2026
@lettertwo
lettertwo force-pushed the review/03-staging-zoom branch from 4b2e331 to 697ffe9 Compare September 4, 2026 18:14
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.

1 participant