emacsorphanage / git-messenger

Emacs Port of git-messenger.vim
146 stars 14 forks source link

can I display the commit-id (first 8 characters of it, maybe) and the author name and date? #5

Closed redguardtoo closed 11 years ago

redguardtoo commented 11 years ago

For me, the purpose of use this very useful plugin is literally git blame somebody.

syohex commented 11 years ago

No it is not supported now. I think it is not difficult to implement. I try to implement.

redguardtoo commented 11 years ago

Cool, thank you! make it configurable would be good. For example, I can highlight the guy to be blamed with red colour (or any other colour).

and option to copy the whole text into kill-ring, or just give me some hook.

Easy for me to copy all the information into my email and begin the blame game ;)

and some visible feedback in the mini-buffer, btw.

syohex commented 11 years ago

I have implemented it at show-detail branch.

https://github.com/syohex/emacs-git-messenger/tree/show-detail

For example, I can highlight the guy to be blamee with red color (or any other color).

This is difficult because popup.el clears string properties and sets its own property.

option to copy the whole text into kill-ring, or just give me some hook.

I added hook git-messenger:after-popup-hook. It takes one argument, commit messeage. Following example is copy text.

(add-hook 'git-messenger:after-popup-hook
          (lambda (message)
            (with-temp-buffer
              (insert message)
              (kill-region (point-min) (point-max)))))

You can show detail message by git-messenger:popup-message with C-u prefix or set boolean variable git-messenger:show-detail to t.

Screenshot is like following

git-messenger-show-detail

I will merge this to master branch if you have no problem.

redguardtoo commented 11 years ago

Perfect! You are a genius

syohex commented 11 years ago

@redguardtoo I merge to master branch.