← 插件

Better Built-in Diff

Search diffs and expand surrounding code directly in Paseo’s built-in Changes panel.

$ clisbot plugin add zhou13/better-builtin-diff
报告问题
Yichao ZhouGit0次安装aaef673e4f21源代码
Better Built-in Diff 截图 1

该插件的概览尚未翻译为你的语言,因此以英文显示。

Search a diff and expand its surrounding code directly in Paseo’s built-in Changes panel on desktop and web. The daemon host needs Git and npm.

Click ↑ 30 or the adjacent @@ header in Paseo’s Changes panel to show the preceding unchanged lines. Click ↓ 30 to show the lines following that hunk. Each click reveals up to 30 lines in the current layout. You can expand a gap from either end. When the header scrolls out of view, the down arrow also appears at the last expanded line. When only the down arrow is available, clicking the header expands downward. The plugin checks the end of the file when you request following context.

Click inside the diff and press Cmd+F on macOS or Ctrl+F on Windows and Linux. You can also open the diff and choose Find in Changes in the Command Center. Type literal text to jump to the first match. Enter and Shift+Enter move forward and backward. Escape closes the search.

Search includes added, deleted, and visible context lines in the loaded comparison, including collapsed files and newly expanded context. It ignores case, wraps at either end, and navigates the first 10,000 occurrences. The active occurrence is highlighted directly over the code.

Expansion supports unified and split working diffs, including the Uncommitted, All, and branch comparisons. The plugin reads the corresponding Git and workspace versions on the Paseo host when you click. It verifies that the requested lines agree on both sides and sends the requested page to the viewer. Expansion supports regular text files up to 16 MiB per version. Closing the viewer or receiving a fresh diff can reset the expanded ranges.

Expanded code uses Paseo’s syntax highlighter and the current theme. For files larger than 768 KiB, coloring uses a window of surrounding source. A multiline construct that starts before that window can lose its color.

The desktop and browser plugin uses the renderer and checkout cache from Paseo 0.18.2. A future change to either can require a plugin update.