Kate: Possible to view diffs in-editor?

Been thinking about switching to Kate for development, and didn’t realize how much I was dependent on this feature until it was gone:

In [other editor], git diff info is rendered in the editor, colorized differently for staged vs unstaged, modified line vs new line, and indicators for removed lines. Also very helpful to be able to click on some of those indicators to see the more complete diff in the case of modified/removed lines.

In Kate, however, this is absent:

Although notably, changes made “during this session” are highlighted.

Of course there’s the Git tab on the side, but that’s inherently removed from LSP diagnostics + surrounding context + etc.

I never realized how much I relied on this (esp. in reviewing patches) until it was missing; is there any way to achieve this in Kate?

You can show the git diff from right clicking the wanted file in the git tab and selecting “Show diff” in the appeared context menu.

This will open a new tab with a side by side comparison.

Tou can also open multiple tabs at ounce by selecting multiple files in the git tab.

I hop this help resolve your problem

Hey thanks, but as I mentioned, the trouble with that is it’s inherently separated from LSP diagnostics + surrounding context etc. I’m really looking for a way to display the diff directly in the editor

Sorry but I’m not aware of such feat

This is basically https://bugs.kde.org/show_bug.cgi?id=489692 + some extras like viewing the diff when clicking the gutter.

Its not implemented yet.