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 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
elijahr
评分
0 0 0
版本
0.7.0
创建于
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