Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

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

Open
aca opened this issue Feb 9, 2022 · 2 comments
Open

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

aca opened this issue Feb 9, 2022 · 2 comments

Comments

@aca
Copy link

aca commented Feb 9, 2022

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).

@lambdalisue
Copy link
Owner

Thanks.

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

@aca
Copy link
Author

aca commented Feb 11, 2022

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},
        \)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants