dsh-edit-diff:在 DSH 文件变更卡片上重绘行级 diff

dsh-edit-diff 是 DSH 社区工作流插件,在 edit/write/insert/str_replace_editor 及 run_code(PTC)子调用的工具卡片上重绘行级 diff:相同上下文只渲染一次,改动行红绿底色并做行内字符高亮。它弥补内置 diffCardModel 对 PTC 与 str_replace_editor 不展示 diff、以及内置 DiffBlock 重复渲染上下文的问题;轮末提供「N 个文件已更改」汇总卡,支持审查、打开与右键在资源管理器中定位。安装命令为 dsh plugin add github:senyayume/dsh-edit-diff --profile desktop,host 半身需重启 harness 生效。

Read More
DSH·Deduplication Diff Display Plugin

The DSH plugin `dsh-edit-diff` addresses the visual redundancy caused by DSH's native DiffBlock displaying unchanged lines. It leverages a near-linear algorithm to render only genuinely changed lines, supports inline character highlighting, collapsed-by-default display, and statistics, and takes over scenarios such as `edit`/`write` and remote file editing to provide a clearer diff viewing experience.

Read More