Visitar URL original
Show visual diff / rollback options when clicking changed lines indicator · Issue #4630 · zed-industries/zed · GitHub
Skip to content

Show visual diff / rollback options when clicking changed lines indicator #4630

Closed

Description

@tychedelia

Check for existing issues

  • Completed

Describe the feature

Currently, there are visual indicators of diffs to a file to the left of line numbers that show additions, deletions, etc. I would like to click this indicator and show the diff hunk of what changes, as well as have some quick options to operate on that hunk, primarily rollback.

Example from IntelliJ, clicking the "back" arrow will roll this line back to what's shown in the diff:
image

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

No response

Activity

  1. teschmitt commented on Sep 20, 2023

    @teschmitt

    This would be fantastic. Can't tell you how many times I've intuitively clicked on a highlight in the git gutter 😆

  2. mkadirtan commented on Jan 23, 2024

    @mkadirtan

    Are there any plans to implement this?

  3. amatiash commented on Feb 17, 2024

    @amatiash

    I'm also missing this feature! Looking forward to it!

  4. JosephTLyons commented on Jul 28, 2024

    @JosephTLyons
    Collaborator

    Zed now can show the diff inline and we have a few options for reverting the hunk or the full file:

    SCR-20240728-dknf

    I'm going to close this issue out, please open new issues if you there is more functionality wanted here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:integrations/gitGit integration feedbackfeatureDEPRECATED label: use issue type 'Feature' instead

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions