fugit2.nvim icon indicating copy to clipboard operation
fugit2.nvim copied to clipboard

feature: Diff split like fugitive

Open jcorbin opened this issue 1 year ago • 2 comments

Did you check the docs?

  • [X] I have read all the docs

Is your feature request related to a problem? Please describe.

The one thing keeping me stuck on fugitive is its :GSplit feature, which allows me to never need to run git-add-p in practice.

Describe the solution you'd like

A simple diff split mode:

  • the key feature that a plugin needs to provide, is the ability to directly edit a git stage blob
  • from there it’s mostly a matter of regular vimdiff features and editing

Describe alternatives you've considered

Was hoping that diffview.nvim would work, allowing me to switch off fugitive to it plus a lua native porcelain like neogit (or fugit2…). But their focus on multi vcs abstraction, and fancy tree spanning changeset orientation doesn’t work well for me: https://github.com/sindrets/diffview.nvim/issues/471

Additional context

No response

jcorbin avatar Mar 20 '24 14:03 jcorbin

Hello @jcorbin, for now, please install diffview.nvim as dependency. Then when you press "d d", you will be navigate to diffview.nvim tab.

I also included a patch view. Press "=" to toggle it.

Screenshot 2024-03-21 at 00 03 08

Will include a full diff view later.

SuperBo avatar Mar 20 '24 17:03 SuperBo

hi @jcorbin, I implemented diffview, you can now trigger it by pressing dd or call command Fugit2Diff

SuperBo avatar May 15 '24 03:05 SuperBo

Will close for now

SuperBo avatar Jun 01 '24 06:06 SuperBo