Replies: 1 comment
-
|
Lazygit supports external diff commands, so if you used git:
-pagers:
- useExternalDiffGitConfig: truein your git config file to use it (I haven't tried that). See lazygit's docs for more details. Let me know if that doesn't work, or if this external diff support needs anything else to make it useable for sem. Personally I like difftastic for cases where I want to see token-level diffs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
lazygit's diff panel is line-based. Would there be interest in an optional semantic diff view that groups changes by entity, e.g. "modified function X", "added class Y", "removed method Z", so you can scan what actually changed at the function/class level?
This could be backed by sem, an open-source (MIT/Apache) entity-level code tool. It emits JSON over a stable CLI (
sem diff --patch --format json) across 26 languages via tree-sitter, so it's a clean subprocess call. Another tool, plannotator, already renders a review UI from this exact output.This might fit as a built-in optional panel, or even just as a documented custom command. I maintain sem and am happy to prototype either. Would a semantic diff view be of interest?
Beta Was this translation helpful? Give feedback.
All reactions