Rename three commands, deprecate their old names (#887)

The following commands have been renamed to better describe their
function and avoid confusion.
:VimwikiDeleteLink → :VimwikiDeletePage
:VimwikiRenameLink → :VimwikiRenamePage
:VimwikiGenerateTags → :VimwikiGenerateTagLinks (was already renamed in 3b5537f)

Calling the old commands still works but displays a warning message.
This commit is contained in:
Michael F. Schönitzer
2020-05-24 23:49:28 +02:00
committed by GitHub
parent 57dc48d686
commit 1eb74dcf2f
4 changed files with 37 additions and 18 deletions

View File

@ -2379,6 +2379,11 @@ function! vimwiki#base#search(search_pattern) abort
endtry
endfunction
function! vimwiki#base#deprecate(old, new) abort
echohl WarningMsg
echo a:old 'is deprecated and will be removed in future versions, use' a:new 'instead.'
echohl None
endfunction
" -------------------------------------------------------------------------
" Load syntax-specific Wiki functionality