ClaudeMods
☰
ZH-CN
● — 人在线 · 浏览 — 次
赞助提交作品
GitHub 仓库 · 发布者 oskarnrk

我做了一个用于并排差异显示的 Claude Code 模组

一位 Reddit 用户分享了 cc-split-diff-view,这是一个开源 Claude Code 模组,可将 Edit 和 Write 差异渲染为两个并排的列,并带有真实行号、折叠的未更改部分以及主题感知的语法高亮。帖子包含 GitHub 仓库链接。

已翻译

关于这个 mod

该模组会将 Claude Code 的 Edit 和 Write 工具生成的差异重绘为并排的列:左侧为删除的行,右侧为新增的行,两侧都有真实行号,未更改部分会折叠,并使用 Claude Code 自有的差异颜色和语法高亮(主题感知)。作者是在 Claude Code 2.1.287 版开始提供模组后构建它的,并在 https://github.com/neteye-platform/cc-split-diff-view 提供源代码。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add neteye-platform/cc-split-diff-view
claude plugin install cc-split-diff-view@neteye-platform
原文 / README

Hi everyone! This is my first post in this subreddit. I wanted to share something I built: cc-split-diff-view , a Claude Code mod for displaying diffs side by side. When Claude Code modifies a file, the changes are normally shown in a unified diff view. Personally, I prefer seeing removed and added lines next to each other because it makes the changes easier to understand. It’s subjective, of course 😅 When mods became available in Claude Code (with version 2.1.287), I thought I would try building one to get the diff view I prefer. The mod redraws the diffs generated by Edit and Write in two side-by-side columns: removed lines on the left added lines on the right real line numbers on both sides unchanged sections collapsed Claude Code’s own diff colors and syntax highlighting (theme aware) cc-split-diff-view demo screenshot It’s open source and available here: https://github.com/neteye-platform/cc-split-diff-view I hope it can be useful to others who prefer side-by-side diffs. Feedback and suggestions are very welcome! EDIT: added screenshot submitted by /u/oskarnrk to r/ClaudeCode [link] [comments]

更多类似作品