Skip to content

🐛 How to use with difftool? IE how to stage changes after reviewing them? #1382

Closed

Description

@dessalines

I'm trying to switch from vimdiff to delta, but I'm having trouble with this simple and common use case (code review) :

  • I've changed a bunch of files.
  • I run difftool to see a side-by-side diff of the changes of each file I've changed.
  • If I like the changes, I can run git add from within the interface in some way.
  • I can also see my staged changes if I want, before I run git commit

Is there any flow / way to do this using delta?

Activity

  1. changed the title [-]🐛 How to use with difftool? IE how to stage[/-] [+]🐛 How to use with difftool? IE how to stage changes after reviewing them.[/+] on Apr 10, 2023
  2. changed the title [-]🐛 How to use with difftool? IE how to stage changes after reviewing them.[/-] [+]🐛 How to use with difftool? IE how to stage changes after reviewing them?[/+] on Apr 10, 2023
  3. dandavison commented on Apr 10, 2023

    @dandavison
    Owner

    Hi @dessalines, this question is about using Delta with Vim -- is that correct?

    I haven't looked into that myself; others have but I'm not sure what the state of the art is. In case it helps as a reminder -- Delta itself is a command line tool that takes in git/diff/grep output and outputs a reformatted version colorized (incl. syntax highlighting) using ANSI escape sequences.

    I'll convert this to a Discussion since AIUI it is Vim-specific rather than a Delta bug/feature request, although if it gives rise to a Delta feature request that's great. (All the things you mention are possible with the Delta Magit integration).

  4. Repository owner locked and limited conversation to collaborators on Apr 10, 2023
  5. converted this issue into a discussion #1383 on Apr 10, 2023
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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions