Skip to content

Commit 58dcfac

Browse files
committed
vim: add Todos command
1 parent 5d5978e commit 58dcfac

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎vim/plugged/supplemental/plugin/simple-rg.vim‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,6 @@ command! -bang -nargs=* -complete=file Rg call s:rg(<q-args>, 1, <bang>0)
6969
" :LRg[!] <query> - Search for <query>, open results in location list
7070
" :LRg[!] - Search for word under cursor, open results in location list
7171
command! -bang -nargs=* -complete=file LRg call s:rg(<q-args>, 0, <bang>0)
72+
73+
" :Todos[!] [paths] - Search for TODO and FIXME, open results in quickfix window
74+
command! -bang -nargs=* -complete=file Todos call s:rg('-e TODO -e FIXME -w -i ' . <q-args>, 1, <bang>0)

0 commit comments

Comments
 (0)