vim-gina icon indicating copy to clipboard operation
vim-gina copied to clipboard

Can I use it with delta instead of diff-highlight?

Open aca opened this issue 3 years ago • 2 comments

Thank you for the great project. I don't see why this is not popular enough than other project. When I Gina:log and show commit. It shows diff with default git diff. Maybe can I use it with tools like delta? delta supports git diff --color | delta --diff-highlight which emulate same view as diff-highlight (but better).

aca avatar Feb 09 '22 12:02 aca

Thanks.

Well, unfortunately, supporting delta is a bit tough work while gina depends on the feature of git itself.

lambdalisue avatar Feb 09 '22 21:02 lambdalisue

That's sad, for now here's mapping to use delta

call gina#custom#mapping#nmap(
        \ 'log', 'd',
        \ ':execute printf(":new term://git diff %s \| resize +10", gina#action#candidates()[0].rev)<cr>',
        \ {'noremap': 1, 'silent': 1},
        \)

aca avatar Feb 11 '22 16:02 aca