aboutsummaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authoruser <user@clank>2026-07-23 00:03:03 +0200
committeruser <user@clank>2026-08-12 19:34:35 +0200
commit460366a59f5ef4c70e020563d80b6183f3b14297 (patch)
tree986ea839a9f461845c0b2cf25457737450fe0e0b /cli
parentslop-tool-boxes: stamp bash runtime in bottom border (right-aligned) (diff)
downloadsl0ppi-460366a59f5ef4c70e020563d80b6183f3b14297.tar.gz
sl0ppi-460366a59f5ef4c70e020563d80b6183f3b14297.tar.xz
sl0ppi-460366a59f5ef4c70e020563d80b6183f3b14297.zip
slop-tool-boxes: syntax-highlighted diffs with gutter + bg band
Replace the post-hoc applyDiffBackgrounds hack (which recolored the native flat green/red diff lines) with a real diff renderer built from the raw diff string (result.details.diff, and the live preview.diff on the call component). Each code line is syntax-highlighted via highlightCode/getLanguageFromPath, drawn with a `± lineNum` gutter, and add/remove rows get a subtle dark bg band across the full width. The band is re-asserted after fg resets so syntax colors do not punch holes in it. Context rows are highlighted with no band; skipped-context collapses to a dim ellipsis. Applies to both slots: the live edit preview (renderCall) busts its width cache on preview identity change, and the settled result (renderResult) falls through to native output when there is no diff (e.g. errors).
Diffstat (limited to 'cli')
0 files changed, 0 insertions, 0 deletions