Skip to content

Commit 0bd0d89

Browse files
author
yssl
committed
VIntSearchBuildSymbolDB
- VIntSearchBuildTag is deprecated and will be removed at version 1.4.0.
1 parent 62c055c commit 0bd0d89

File tree

2 files changed

+32
-26
lines changed

2 files changed

+32
-26
lines changed

autoload/VIntSearch.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function! VIntSearch#Cprev(use_quickfix)
1616
call s:Cprev(a:use_quickfix)
1717
endfunction
1818

19-
function! VIntSearch#BuildTag()
19+
function! VIntSearch#BuildSymbolDB()
2020
call s:BuildTag()
2121
endfunction
2222

@@ -919,3 +919,9 @@ function! s:DoFinishingWorkDep(qflist, keyword, cmd, options, jump_to_firstitem,
919919

920920
echo message
921921
endfunction
922+
923+
function! VIntSearch#BuildTag()
924+
call s:BuildTag()
925+
echom 'VIntSearch: :VIntSearchBuildTag is deprecated. Please use :VIntSearchBuildSymbolDB instead.'
926+
endfunction
927+

plugin/VIntSearch.vim

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
" License: MIT License
55

66
if exists("g:loaded_vintsearch") || &cp
7-
"finish
7+
finish
88
endif
99
let g:loaded_vintsearch = 1
1010
let s:keepcpo = &cpo
@@ -92,8 +92,8 @@ endfunction
9292
command! VIntSearchPrintPath call VIntSearch#PrintSearchPath()
9393
command! VSpath call VIntSearch#PrintSearchPath()
9494

95-
command! VIntSearchBuildTag call VIntSearch#BuildTag()
96-
command! VSbtag call VIntSearch#BuildTag()
95+
command! VIntSearchBuildSymbolDB call VIntSearch#BuildSymbolDB()
96+
command! VSbuild call VIntSearch#BuildSymbolDB()
9797

9898
"""""""""""""""""
9999
" search commands
@@ -127,7 +127,26 @@ command! -complete=tag -nargs=1 VIntSearchCmd call VIntSearch#SearchRawWithCmdPa
127127
command! -complete=tag -nargs=* VIntSearchCursorCmd call VIntSearch#SearchCursorWithCmd(<f-args>)
128128

129129
"""""""""""""""""
130-
" deprecated search commands
130+
" stack commands
131+
132+
command! VIntSearchMoveBackward call VIntSearch#MoveBackward(1)
133+
command! VSbwd call VIntSearch#MoveBackward(1)
134+
135+
command! VIntSearchMoveForward call VIntSearch#MoveForward(1)
136+
command! VSfwd call VIntSearch#MoveForward(1)
137+
138+
command! VIntSearchClearStack call VIntSearch#ClearStack()
139+
command! VSclear call VIntSearch#ClearStack()
140+
141+
command! VIntSearchPrintStack call VIntSearch#PrintStack()
142+
command! VSstack call VIntSearch#PrintStack()
143+
144+
command! -nargs=1 VScc call VIntSearch#Cc(<args>, 1)
145+
command! VScnext call VIntSearch#Cnext(1)
146+
command! VScprev call VIntSearch#Cprev(1)
147+
148+
"""""""""""""""""
149+
" deprecated - will be removed in version 1.4.0
131150

132151
command! -complete=tag -nargs=1 VIntSearchCtags call VIntSearch#SearchRawDep(<f-args>,'ctags')
133152
command! -complete=tag -nargs=1 VSctags call VIntSearch#SearchRawDep(<f-args>,'ctags')
@@ -146,32 +165,13 @@ command! -complete=tag -nargs=1 VScfgrep call VIntSearch#SearchRawDep(<f-args>,'
146165
command! -complete=tag -nargs=1 VIntSearchFind call VIntSearch#SearchRawDep(<f-args>,'find')
147166
command! -complete=tag -nargs=1 VSfind call VIntSearch#SearchRawDep(<f-args>,'find')
148167

149-
"""""""""""""""""
150-
" deprecated search commands with cursor
151-
152168
command! -complete=tag -nargs=* VIntSearchCtagsCursor call VIntSearch#SearchCursorDep('ctags',<f-args>)
153169
command! -complete=tag -nargs=* VIntSearchGrepCursor call VIntSearch#SearchCursorDep('grep',<f-args>)
154170
command! -complete=tag -nargs=* VIntSearchCFGrepCursor call VIntSearch#SearchCursorDep('cfgrep',<f-args>)
155171
command! -complete=tag -nargs=* VIntSearchFindCursor call VIntSearch#SearchCursorDep('find',<f-args>)
156172

157-
"""""""""""""""""
158-
" stack commands
159-
160-
command! VIntSearchMoveBackward call VIntSearch#MoveBackward(1)
161-
command! VSbwd call VIntSearch#MoveBackward(1)
162-
163-
command! VIntSearchMoveForward call VIntSearch#MoveForward(1)
164-
command! VSfwd call VIntSearch#MoveForward(1)
165-
166-
command! VIntSearchClearStack call VIntSearch#ClearStack()
167-
command! VSclear call VIntSearch#ClearStack()
168-
169-
command! VIntSearchPrintStack call VIntSearch#PrintStack()
170-
command! VSstack call VIntSearch#PrintStack()
171-
172-
command! -nargs=1 VScc call VIntSearch#Cc(<args>, 1)
173-
command! VScnext call VIntSearch#Cnext(1)
174-
command! VScprev call VIntSearch#Cprev(1)
173+
command! VIntSearchBuildTag call VIntSearch#BuildTag()
174+
command! VSbtag call VIntSearch#BuildTag()
175175

176176
"""""""""""""""""""""""""""""""""""""""""""""
177177
let &cpo= s:keepcpo

0 commit comments

Comments
 (0)