Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Difftastic for visualizing code diffs #9721

Open
1 task done
laike9m opened this issue Mar 22, 2024 · 2 comments
Open
1 task done

Support Difftastic for visualizing code diffs #9721

laike9m opened this issue Mar 22, 2024 · 2 comments
Labels
enhancement [core label] tooling An umbrella label for language tools, linters, formatters, etc

Comments

@laike9m
Copy link

laike9m commented Mar 22, 2024

Check for existing issues

  • Completed

Describe the feature

Difftastic is a structural diff tool that understands syntax. It supports over 30 programming languages. It would be nice to integrate it with Zed.

Its result is way better & cleaner than traditional diff
image

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@laike9m laike9m changed the title Support Difftastic for visualizing code diffing Support Difftastic for visualizing code diffs Mar 22, 2024
@Moshyfawn Moshyfawn added tooling An umbrella label for language tools, linters, formatters, etc and removed triage labels Mar 23, 2024
@baldwindavid
Copy link
Contributor

You may be suggesting a tighter integration with Difftastic, but tools like this can leverage tasks fairly easily. For example, viewing uncommitted changes with Difftastic...

{
  "label": "Uncommitted Changes",
  "command": "GIT_EXTERNAL_DIFF=difft git diff"
},

That could then be kicked off via command or a keybind like...

"space g d": [
  "task::Spawn",
  {
    "task_name": "Uncommitted Changes"
  }
]

@JosephTLyons JosephTLyons added git Git integration feedback and removed admin read git Git integration feedback labels Mar 26, 2024
@Moshyfawn Moshyfawn mentioned this issue May 28, 2024
1 task
@Killusions
Copy link

An integration would still bring advantages since (as is one of my favorite features of VSCode) it could allow both (free text) editing of the right hand side and still keep the language integrations.

This might be aided by the fact that it is also built upon tree-sitter AFAIK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [core label] tooling An umbrella label for language tools, linters, formatters, etc
Projects
None yet
Development

No branches or pull requests

5 participants