From fcecc3c8689accbabfbc78eb36394fe8debcd248 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Wed, 18 Jan 2017 00:14:36 +0100 Subject: [PATCH] Remove rather useless :SignifyDebugDiff --- autoload/sy/debug.vim | 28 ---------------------------- autoload/sy/repo.vim | 8 ++++---- plugin/signify.vim | 5 ++--- 3 files changed, 6 insertions(+), 35 deletions(-) diff --git a/autoload/sy/debug.vim b/autoload/sy/debug.vim index c876ff6..32b2640 100644 --- a/autoload/sy/debug.vim +++ b/autoload/sy/debug.vim @@ -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 diff --git a/autoload/sy/repo.vim b/autoload/sy/repo.vim index 0bbbb1d..0235dbf 100644 --- a/autoload/sy/repo.vim +++ b/autoload/sy/repo.vim @@ -65,8 +65,8 @@ function! sy#repo#get_diff_start(vcs, do_register) abort execute b:sy_info.chdir fnameescape(b:sy_info.dir) try let b:job_id_{a:vcs} = jobstart(cmd, extend(options, { - \ 'on_stdout': function('s:callback_stdout_nvim'), - \ 'on_exit': function('s:callback_exit'), + \ 'on_stdout': function('s:callback_stdout_nvim'), + \ 'on_exit': function('s:callback_exit'), \ })) call sy#verbose('job_start()', a:vcs) finally @@ -79,8 +79,8 @@ function! sy#repo#get_diff_start(vcs, do_register) abort execute b:sy_info.chdir fnameescape(b:sy_info.dir) try let b:job_id_{a:vcs} = job_start(cmd, { - \ 'in_io': 'null', - \ 'out_cb': function('s:callback_stdout_vim', options), + \ 'in_io': 'null', + \ 'out_cb': function('s:callback_stdout_vim', options), \ 'exit_cb': function('s:callback_exit', options), \ }) call sy#verbose('job_start()', a:vcs) diff --git a/plugin/signify.vim b/plugin/signify.vim index e1d2949..74f83a7 100644 --- a/plugin/signify.vim +++ b/plugin/signify.vim @@ -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(1) command! -nargs=0 -bar SignifyRefresh call sy#util#refresh_windows() command! -nargs=0 -bar SignifyEnable call sy#enable()