GitHub PR review keyboard shortcut

Mark file as "viewed" on GitHub PR UI when hovering and pressing 'Escape' key, or unmark with Shift+Escape

目前為 2025-10-31 提交的版本,檢視 最新版本

作者
elijahr
評價
0 0 0
版本
0.6
建立日期
2025-10-31
更新日期
2025-10-31
尺寸
4.0 KB
授權條款
MIT
腳本執行於

github-review-shortcut

Mark file as "viewed" on GitHub PR UI when hovering and pressing 'Escape' key, with automatic navigation for efficient code review.

Original discussion

Features

  • Toggle viewed status: Press any key while hovering over a file diff to mark it as viewed (or unmark if already viewed)
  • Automatic navigation: In large pull request mode (where GitHub shows only one file at a time), automatically navigates to the next file ('j') when marking as viewed, or previous file ('k') when unmarking
  • Smart fallback: If no file is under the cursor, automatically targets the first visible file in the viewport

Usage

  • Hover over any file diff and press any key to toggle its viewed status
  • In large pull request mode (single file visible), the script will automatically navigate:
    • Next file when marking as viewed
    • Previous file when unmarking

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址