Closed dycw closed 3 years ago
Hi @dycw, thanks. Essentially, delta is a program that takes git/diff plain text input and returns it with ANSI color escape codes. So to get the colors etc in your text editor when it's displaying the commit message, your text editor would have to handle the color escape codes, like a terminal emulator does. I've implemented that for emacs, but I'm not a vim user, so I'm unclear how possible this is in vim. Could you try asking your question in this delta issue thread: https://github.com/dandavison/delta/issues/338, where there are several knowledgable delta+vim users?
Absolutely, thank you @dandavison for delta
; one of my best finds in a decade of programming!
Hey, did anyone ever figure this out?
I'm really no expert in customizing vim, but I am used to the motions etc. so I use it as my editor of choice for CLI Git usage.
I think #338 spun off into a thread around much more advanced usage within Nvim etc.
But what about just simply using Delta to display the diffs when you git commit
with EDITOR=vim
?
I am using https://github.com/rhysd/committia.vim and it seems to work fine for me. @jessevdp
Hi,
delta
is amazing! However, is it possible to wire it into myCOMMIT_EDITMSG
so that I get the same amazing-ness when I have to write my commit message? I'm usingvim
in case that helps.