SuperBo / fugit2.nvim

Neovim git GUI powered by libgit2
MIT License
352 stars 7 forks source link

feature: Diff split like fugitive #13

Closed jcorbin closed 2 months ago

jcorbin commented 4 months ago

Did you check 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:

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

SuperBo commented 4 months ago

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 commented 2 months ago

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

SuperBo commented 2 months ago

Will close for now