Commit 2c5a41f
authored
🤖 feat: add Shift+M shortcut to mark entire file as read in code review (#560)
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`_1 parent 83a5273 commit 2c5a41f
File tree
3 files changed
+37
-1
lines changed- src
- components/RightSidebar/CodeReview
- utils/ui
3 files changed
+37
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
470 | 497 | | |
471 | 498 | | |
472 | 499 | | |
| |||
534 | 561 | | |
535 | 562 | | |
536 | 563 | | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
537 | 568 | | |
538 | 569 | | |
539 | 570 | | |
| |||
553 | 584 | | |
554 | 585 | | |
555 | 586 | | |
| 587 | + | |
556 | 588 | | |
557 | 589 | | |
558 | 590 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
279 | 282 | | |
280 | 283 | | |
281 | 284 | | |
0 commit comments