mirror of
https://github.com/gilsondev/searchtasks.vim.git
synced 2025-11-14 12:43:48 -05:00
Refactoring SearchTasksGrep
This commit is contained in:
@@ -34,7 +34,7 @@ function s:SearchTasksGrep(directory)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
for task in g:searchtasks_list
|
for task in g:searchtasks_list
|
||||||
execute 'grepadd ' . task . ' ' . a:directory
|
execute 'silent :grepadd ' . task . ' ' . a:directory
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
" show results
|
" show results
|
||||||
@@ -42,7 +42,7 @@ function s:SearchTasksGrep(directory)
|
|||||||
endfunction
|
endfunction
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
if has("grepadd")
|
if exists("grepadd") || v:version > 700
|
||||||
command -nargs=1 SearchTasksGrep call s:SearchTasksGrep('<args>')
|
command -nargs=1 SearchTasksGrep call s:SearchTasksGrep('<args>')
|
||||||
endif
|
endif
|
||||||
command -nargs=1 SearchTasks call s:SearchTasks('<args>')
|
command -nargs=1 SearchTasks call s:SearchTasks('<args>')
|
||||||
|
|||||||
Reference in New Issue
Block a user