takaaki-kasai / git-foresta

git-foresta: Text-based git log graph viewer
GNU General Public License v3.0
222 stars 11 forks source link

Ansi Escape Code #8

Open dstadelm opened 2 years ago

dstadelm commented 2 years ago

I'm trying to use this version of git-forest in combination with TamaMcGlinn/flog-forest in neovim. But the colors do not seem to work any more then. Are the colors printed as Ansi Escape characters? Is there anybody with experience with such a use case?

in the terminal image

within neovim image

dstadelm commented 2 years ago

Ok, I've found the issue within the flog-forest plugin

TamaMcGlinn commented 2 years ago

Perhaps you need to install 'tklebanoff/vim-AnsiEsc' as well? If that fixes it, we should add this to the readme for flog-forest.

dstadelm commented 2 years ago

Indeed, and using the patched version of git-forest that is shipped with your plugin works just fine. However, I was wondering if it where possible to have colored branches. (and the style of this version git-foresta with the icons)

dstadelm commented 2 years ago

I've installed AnsiEsc and using your 'vanilla' plugin version works, just without colors for the branches image

TamaMcGlinn commented 2 years ago

Probably possible, but that is issue #7 and I gave up trying to debug that. If you want to do that, you need to go into ~/.vim/plugged/flog-forest/git-forest, checkout / cherry-pick the experimental_ansi_colors branch and get it to work.

dstadelm commented 2 years ago

Thanks a lot for your incredible good work and insane fast response. If I find time I will definitely try that out.