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

feature: inline view of commits

Open jdrouhard opened this issue 3 years ago • 0 comments

Did you check docs the docs?

  • [X] I have read all the lazy docs

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

Packer and vim-plug both have a way to view commits from the changelog (in packer, you can press "d" on a commit hash and it opens a new top-split with the diff).

I find this invaluable when looking through changes to plugins. I'm aware of the K mapping, but it seems to open a browser window on my Mac, and doesn't do anything on my remote ssh session. Even if I could get the remote SSH session to open a browser window, this is less than ideal in a workflow where I open a commit, look at it really quick, close it, go to the next, etc. The browser window disrupts the flow.

Describe the solution you'd like

If there was a way for lazy.nvim to open a new split, or another floating window with the diff, or something to that effect, it would greatly improve the workflow for looking through changes.

The new split or window wouldn't need to be super fancy, it'd just need to show the diff (git show <commit>, basically), and have a simple map to close it and go back to the main lazy.nvim window (q or gq).

Describe alternatives you've considered

K - but it doesn't work over SSH sessions and opening a browser to show the commit disrupts the flow of checking multiple commits quickly.

Additional context

No response

jdrouhard avatar Dec 23 '22 14:12 jdrouhard