gregsexton / gitv

gitk for Vim.
938 stars 59 forks source link

Wrap or truncate long commit messages #3

Closed mong8se closed 13 years ago

mong8se commented 13 years ago

AWESOME PLUGIN, just what I've been looking for! :Gitv! rules

One suggestion, if there is even one obnoxiously long commit message the buffer is so wide I have to keep hitting $ and ^ to see which names and dates line up with which commits.

An option to wrap or truncate messages would be great. Bonus points for a keystroke to view commit details in case you want to read the whole giant commit message.

mathstuf commented 13 years ago

Sounds like something a fold could handle. However, I am unsure whether there is support for highlighting the line left when the fold is closed.

gregsexton commented 13 years ago

Thanks, I'm glad you like it.

I've added two options, one allows lines to wrap the other will truncate commit subjects so that they fit on the line. Hope this solves your problem. They're both disabled by default, you will have to enable them by adding lines to your .vimrc.

Bonus points: pressing ctrl and enter (<c-cr>) in file mode now opens the commit like in browser mode.

As for folds. I'm working on something that will allow you to fold entire branches at will. Should have it ready soon. It really makes browsing a repository easy.