AT

agavra/tuicr

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

3489 stars 质量 68 趋势 54MIT

带有vim键绑定的代码审查TUI

概览

- 终端中的GitHub风格连续差异。在一个流中滚动浏览所有更改文件。- 在行、范围、文件和审阅层面提供PR风格的注释。- 以文件或粗粒度审查跟踪,跨会话持续。- 三个导出目标:推送真实审阅到GitHub或GitLab,将结构化markdown复制到剪贴板,或管道发送到stdout。- 支持git、jj和mercurial。审查未提交的更改、提交范围,或任何GitHub PR或GitLab的MR。 其他安装方法(cargo、mise、nix、binari、源码) 在 Tuicr 内部,用 j/k 导航,按 c 评论,然后按 y 复制评测,:submit 推送到 GitHub。打开你之前审阅过的 GitHub PR 或 GitLab MR 时,tuicr 会预选比你最新提交的评审更新的提交(当该元数据可用时);已经被评审覆盖的提交会在内联选择器中标注为 ✓。自动检测 git、jj 或 mercurial。

概述(AI 翻译)

带vim键绑定的代码审查TUI。导出到GitHub、GitLab、Gitea、Bitbucket、Azure DevOps、Gerrit或clipboard。

[!提示] 发音是“tweaker”。

它的作用

  • 终端中的GitHub风格连续差值。在一个流中滚动浏览所有更改的文件。
  • 在行、区间、文件和审阅层的PR风格注释。
  • 以文件或块状细度进行跟踪,跨会话持续进行。
  • 三个导出目标:向GitHub、GitLab、Gitea、Bitbucket、Azure DevOps或Gerrit推送真实评测,复制 用结构化的Markdown到你的剪贴板,或者管道直接到标准化。
  • 支持 git、jj 和 mercurial。审核未提交的更改、提交范围或任何 GitHub PR, GitLab MR、Gitea PR、Bitbucket PR、Azure DevOps PR 或 Gerrit change。

安装

其他安装方法(cargo、mise、nix、binari、源码)

预构建二进制文件:GitHub 发布。Linux 版本 包括动态链接的GNU和静态MUSL变体。

来源:

用一个命令更新当前安装:

tuicr update 使用自制、货物、Mise 或 Nix 配置文件,当该经理拥有 可执行文件。安装脚本和手动下载的二进制文件会在匹配中原地更新

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

tuicr

A code review TUI with vim keybindings. Export to GitHub, GitLab, Gitea, Bitbucket, Azure DevOps, Gerrit, or clipboard.

[!TIP] Pronounced “tweaker”.

What it does

  • GitHub-style continuous diff in the terminal. Scroll through every changed file in one stream.
  • PR-style comments at the line, range, file, and review level.
  • Review tracking at file or hunk granularity, persisted across sessions.
  • Three export targets: push a real review to GitHub, GitLab, Gitea, Bitbucket, Azure DevOps, or Gerrit, copy structured markdown to your clipboard, or pipe to stdout.
  • Works with git, jj, and mercurial. Reviews uncommitted changes, commit ranges, or any GitHub PR, GitLab MR, Gitea PR, Bitbucket PR, Azure DevOps PR, or Gerrit change.

Install

curl -fsSL tuicr.dev/install.sh | sh
# or
brew install tuicr
# or
sudo pacman -S tuicr

Update the active installation with one command:

tuicr update
tuicr update 0.18.0 # Install a known-good version

tuicr update uses Homebrew, Cargo, Mise, or a Nix profile when that manager owns the executable. Install-script and manually downloaded binaries update in place from the matching GitHub release asset after SHA-256 verification. Exact-version installs support Cargo and direct binaries; use the package manager’s pinning workflow for Homebrew, Mise, or Nix. A nix run invocation is temporary rather than installed; rerun it to use the current flake, or use nix profile install github:agavra/tuicr for an installation that tuicr update can upgrade.

Quick start

tuicr                       # Pick from a commit selector
tuicr tui                   # Same TUI, explicit subcommand
tuicr -w                    # Uncommitted changes (skip selector)
tuicr -r main..HEAD         # Commit range
tuicr --file f.md --line 42 # Annotate a file, starting at line 42
tuicr pr 125                # GitHub, Gitea, Bitbucket, or Azure DevOps PR, or Gerrit change
tuicr pr 125 --remote up    # Use a named Git remote's fetch URL
tuicr mr 125                # GitLab MR
tuicr tui pr 125            # GitHub PR via explicit TUI subcommand
tuicr tui mr 125            # GitLab MR via explicit TUI subcommand
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add agavra/tuicr
新手?先看 mcpskill.org 教程 →