File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,22 @@ function! sy#toggle() abort
8080 call call (empty (getbufvar (bufnr (' ' ), ' sy' )) ? ' sy#start' : ' sy#stop' , [])
8181endfunction
8282
83+ " #start_all {{{1
84+ function ! sy#start_all () abort
85+ for bufnr in range (1 , bufnr (' ' ))
86+ call sy#start ({' bufnr' : bufnr })
87+ endfor
88+ endfunction
89+
90+ " #stop_all {{{1
91+ function ! sy#stop_all () abort
92+ for bufnr in range (1 , bufnr (' ' ))
93+ if ! empty (getbufvar (bufnr , ' sy' ))
94+ call sy#stop (bufnr )
95+ endif
96+ endfor
97+ endfunction
98+
8399" #buffer_is_active {{{1
84100function ! sy#buffer_is_active ()
85101 return ! empty (getbufvar (bufnr (' ' ), ' sy' ))
Original file line number Diff line number Diff line change @@ -17,10 +17,13 @@ command! -nargs=0 -bar -bang SignifyDiff call sy#repo#diffmode(<bang>
1717command ! -nargs =0 - bar SignifyHunkDiff call sy#repo#diff_hunk ()
1818command ! -nargs =0 - bar SignifyHunkUndo call sy#repo#undo_hunk ()
1919command ! -nargs =0 - bar SignifyRefresh call sy#util#refresh_windows ()
20+
2021command ! -nargs =0 - bar SignifyEnable call sy#start ()
2122command ! -nargs =0 - bar SignifyDisable call sy#stop ()
2223command ! -nargs =0 - bar SignifyToggle call sy#toggle ()
2324command ! -nargs =0 - bar SignifyToggleHighlight call sy#highlight#line_toggle ()
25+ command ! -nargs =0 - bar SignifyEnableAll call sy#start_all ()
26+ command ! -nargs =0 - bar SignifyDisableAll call sy#stop_all ()
2427
2528" Mappings {{{1
2629let s: cpoptions = &cpoptions
You can’t perform that action at this time.
0 commit comments