lambdaisland / lambdaisland/deep-diff2
Consider tweaking colors to draw eye to differences
还没有人认领这个 Issue。
- 主要语言
- Clojure
- 星标
- 326
- 派生
- 18
- PR 合并指标
- 30 天内没有已合并 PR
描述
Thanks so much for the kaocha, I am really enjoying using it!
Some of my integration tests include the comparison of largish data structures. It can take my eyeballs a while to find the diff between expected and actual in these data structures.
I do sometimes use the search feature in my terminal to search for + and - and that can help and I was thinking focusing only on the differences, as #13 suggests, would help.
But I am also thinking perhaps a different choice of colors might help. I like the choice of colors chosen for differences, but I find that the red can take a while to spot because it is already used in non-diff syntax highlighting.
My initial thoughts are:
- change the red to something else in default syntax highlighting, maybe blue.
- take advantage of background colors to really draw the eye to changes. We might even be able to keep the normal syntax highlighting foreground colors with this scheme.
I am happy to give some color schemes a whirl for review, then a PR with changes, if there is interest in this idea.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
issue 中没有提到文件或测试的名称。定位应用语法高亮和 diff 颜色的代码,然后检查现有输出及任何相关测试;当达成一致的颜色处理方式能够让变更更容易被发现,同时不破坏正常的语法高亮时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- clojure
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100