From 9ccc0ce69ffac2da269f411cbe810e4021a3f861 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 29 Apr 2017 05:53:31 +0200 Subject: autoload/gitcha.vim: Abbreviate commit SHA in the popup menu Only show the first 10 characters of the commit SHA in the popup menu to allow more room for the subject. The first part of the SHA is enough to be able to identify it, so this gets rid of some non-essential information. The full commit SHA will still be inserted as a result of the completion. --- autoload/gitcha.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/gitcha.vim b/autoload/gitcha.vim index 9e397fe..0ceebab 100644 --- a/autoload/gitcha.vim +++ b/autoload/gitcha.vim @@ -46,6 +46,7 @@ function! s:BuildMatchDictionary(rev_list) call add(matches, { \ 'word': sha, + \ 'abbr': strpart(sha, 0, 10), \ 'menu': subject \ }) endfor -- cgit v1.2.3