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.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

QingJ © 2025

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