Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

comview

The finest diff viewer ever compressed into a small terminal program. It reads a unified diff from stdin, renders it beautifully, and lets you review code without becoming a web browser.

comview screenshot

Install

git clone https://github.com/rockorager/comview.git cd comview make install

To install somewhere else:

make PREFIX=$HOME/.local install

Usage

git diff | comview git show | comview gh pr diff 123 | comview comview watch comview watch --staged comview watch -- git show HEAD

comview watch reruns git diff and refreshes the view whenever the diff output changes. Arguments after watch are passed to git diff; use -- to watch another diff-producing command.

Comments are saved to .comview/comments.json.

Keybinds

KeyAction
j/k, arrowsMove
h/lMove horizontally
gg / GTop / bottom
Ctrl-d / Ctrl-uHalf-page down / up
J / KNext / previous commit
]c / [cNext / previous change
]n / [nNext / previous note
sToggle side-by-side view
tChoose theme
<space>eFind file in diff
/Search
n / NNext / previous search result
oOpen cursor location in editor
v / VVisual / visual-line selection
iw, aw, i{, a", etc.Text objects, naturally flawless
yCopy selection
i or IAdd/edit comment
x / ddDelete note under cursor
:wSave comments
:q / :q!Quit / force quit
?Show this help
EscCancel

That is all. It is enough.

关于 About

the best diff viewer ever made

语言 Languages

Go99.9%
Shell0.1%
Makefile0.1%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
80
Total Commits
峰值: 80次/周
Less
More

核心贡献者 Contributors