-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline diffs #899
Comments
Is this not possible in the current implementation? I'm trying to find the way how to do it, but seems it's not possible :( UPD. |
It doesn't support it built in, but plugins are able to implement it. Gitsigns already supports viewing a diff inline for a single hunk, that just needs to be extended for the whole buffer. |
Just looked into this and it's more complicated than I anticipated. Basically, In order to achieve syntax highlighting for deleted hunks, Gitsigns creates some blank virtual_lines and then places a floating window on top. Since this floating window is removed when the cursor is moved, we currently don't have to worry about it going off screen, or generally have to manage it much. One possible solution would be to re-implement this without the floating window and grab all the highlights manually. |
Isn't this already supported? Just create a binding that toggles the following commands:
|
That's one way of achieving this. However |
Describe the solution you'd like
Same as
preview_hunk_inline
but for the whole fileDescribe alternatives you've considered
I think the inline diff for hunks is awesome and I would love to be able to do it for the whole file in a single toggle
The text was updated successfully, but these errors were encountered: