SuperBo / fugit2.nvim

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

feature: Open diff for a commit in graph view #17

Open sboesebeck opened 4 months ago

sboesebeck commented 4 months ago

Did you check the docs?

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

no

Describe the solution you'd like

Right now, when running <CMD>Fugit2Graph you'd get a nice overview of commits and branches. That is awesome already. But I did not see a way to either check out this commit, view the diff or anything. Also, in my case I cannot switch branches here.

It would be great to get a little "menu" when hitting enter on an commit to either checkout the commit or see the diff. And when hitting b it would be nice to switch over to the branch view and be able to check out some other branch. (might be a bug?)

Describe alternatives you've considered

hmmm... not sure what to say. I guess, there is no real other solution...

Additional context

No response

SuperBo commented 4 months ago

Graphview still need a lot of code to make it more useful. Right now, it only have nice graph :)).

Will go back to this after diffview is finished. Thank you @sboesebeck.