vim-fugitive-blame-ext icon indicating copy to clipboard operation
vim-fugitive-blame-ext copied to clipboard

Display commit message when :Gblame is first called

Open tommcdo opened this issue 11 years ago • 5 comments

Message is currently only displayed when the cursor is moved, so it does not show the message for the commit under the cursor when the blame window is initially opened. I've tried adding the BufEnter event, but it causes a noticeable flicker -- it seems that the git command runs before fugitive gets a chance to set nowrap and scrollbind.

tommcdo avatar Oct 24 '13 03:10 tommcdo

I tried with the BufReadPost, and it seems to work fine. 😊

kassio avatar May 03 '17 22:05 kassio

No, actually it shows a wrong message, sorry.. :(

kassio avatar May 03 '17 22:05 kassio

Yeah, this one is tricky because I think other :autocmds from fugitive.vim are involved, so getting the timing right is difficult.

Maybe the solution is to get this built into fugitive.vim itself :P

tommcdo avatar May 05 '17 11:05 tommcdo

I think it's a good suggestion, wdyt to open a PR on the original? 😄

kassio avatar May 05 '17 14:05 kassio

Actually, this plugin is sort of a proof-of-concept for a feature request I opened a long time ago. @tpope has a similar feature implemented on a branch, so maybe he needs some encouragement to merge it in :smile:

tommcdo avatar May 05 '17 19:05 tommcdo