Remove rather useless :SignifyDebugDiff

This commit is contained in:
Marco Hinz 2017-01-18 00:14:36 +01:00
parent 31d4c55187
commit fcecc3c868
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F
3 changed files with 6 additions and 35 deletions

View File

@ -46,31 +46,3 @@ function! sy#debug#list_active_buffers() abort
endif
endfor
endfunction
" Function: #verbose_diff_cmd {{{1
function! sy#debug#verbose_diff_cmd() abort
if exists('b:sy') && b:sy.type != 'unknown'
let output = sy#repo#get_diff_{b:sy.type}()[1]
echohl Statement
echo 'Command: '. b:sy_info.cmd
echohl NONE
if empty(output)
echo 'Output: []'
else
echo 'Output:'
for line in split(output, '\n')
if line[0] == '+'
echohl DiffAdd
elseif line[0] == '-'
echohl DiffDelete
else
echohl NONE
endif
echo line
echohl NONE
endfor
endif
else
echo 'signify: I cannot detect any changes!'
endif
endfunction

View File

@ -38,9 +38,8 @@ augroup END
" Init: commands {{{1
command! -nargs=0 -bar SignifyDebug call sy#debug#list_active_buffers()
command! -nargs=0 -bar SignifyDebugDiff call sy#debug#verbose_diff_cmd()
command! -nargs=0 -bar SignifyDebugUnknown call sy#repo#debug_detection()
command! -nargs=0 -bar SignifyList call sy#debug#list_active_buffers()
command! -nargs=0 -bar SignifyDebug call sy#repo#debug_detection()
command! -nargs=0 -bar -bang SignifyFold call sy#fold#dispatch(<bang>1)
command! -nargs=0 -bar SignifyRefresh call sy#util#refresh_windows()
command! -nargs=0 -bar SignifyEnable call sy#enable()