Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

When reviewing code with many hunks per file, marking each hunk individually is tedious. Shift+M now marks all hunks in the current file as read at once.

Implementation:

  • New MARK_FILE_READ keybind triggers handleMarkFileAsRead
  • Finds all hunks with matching filePath and calls existing markAsRead(array)
  • Smart navigation: when hiding read hunks, jumps to next unread file automatically
  • Tooltip updated to show both shortcuts: M (single hunk) and Shift+M (whole file)

Verify: Open review tab, select a hunk, press Shift+M. All hunks in that file should be marked read.

Generated with cmux

- Added MARK_FILE_READ keybind (Shift+M) to mark all hunks in a file
- Implemented handleMarkFileAsRead with smart navigation to next file
- Updated tooltip to show both M (single hunk) and Shift+M (whole file)
- Auto-navigates to next unread file when current file is marked read

Generated with `cmux`
@ammario ammario marked this pull request as ready for review November 12, 2025 16:00
Generated with `cmux`
@ammario ammario merged commit 2c5a41f into main Nov 12, 2025
13 checks passed
@ammario ammario deleted the cr-mark-all branch November 12, 2025 16:34
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