Change: VimwikiCheckLinks work on current wiki or on given range

Problem: VimwikiCheckLinks can be slow
Solution: Work only on current wiki or accept a range
This commit is contained in:
Tinmarino
2020-08-08 04:01:31 -04:00
parent 659ca62b29
commit dede5a1eea
3 changed files with 16 additions and 4 deletions

View File

@ -295,7 +295,7 @@ command! -buffer -nargs=* VWS call vimwiki#base#search(<q-args>)
command! -buffer -nargs=* -complete=customlist,vimwiki#base#complete_links_escaped
\ VimwikiGoto call vimwiki#base#goto(<f-args>)
command! -buffer VimwikiCheckLinks call vimwiki#base#check_links()
command! -buffer -range VimwikiCheckLinks call vimwiki#base#check_links(<range>, <line1>, <line2>)
" list commands
command! -buffer -nargs=+ VimwikiReturn call <SID>CR(<f-args>)