rhysd / git-messenger.vim

Vim and Neovim plugin to reveal the commit messages under the cursor
MIT License
1.34k stars 32 forks source link

[Feature Request] View word-diff version of commit #66

Closed MisanthropicBit closed 3 years ago

MisanthropicBit commented 3 years ago

I usually find it very useful to see the --word-diff of a commit instead of the normal diff.

I have a working (albeit hacked together) version working that passes the default --word-diff=plain to the git arguments in s:blame__reveal_diff and added some additional syntax stuff to highlight the word-diff. One issue that popped up is that lines can become quite long as seen in the screenshot.

For starters, I can clean everything up and submit a pull request if you agree this would be a useful feature?

Screenshot 2020-12-22 at 10 23 16
rhysd commented 3 years ago

Yes, I agree to add the feature if the implementation looks good to me. You already seem to have implementation. Please try to make a PR as-is. I can review it.

MisanthropicBit commented 3 years ago

Great! I'll clean up the implementation and submit a PR.