1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 21:00:03 +08:00

Update denite to use file/rec instead of file_rec (#2702)

This commit is contained in:
Stefan Lendl 2019-03-26 15:35:14 +01:00 committed by Wang Shidong
parent e12830d47b
commit bdb76f152a
2 changed files with 9 additions and 9 deletions

View File

@ -111,7 +111,7 @@ function! SpaceVim#layers#denite#config() abort
let lnum = expand('<slnum>') + s:lnum - 1
call SpaceVim#mapping#space#def('nnoremap', ['f', 'f'], 'call call('
\ . string(s:_function('s:warp_denite')) . ', ["DeniteBufferDir file_rec"])',
\ . string(s:_function('s:warp_denite')) . ', ["DeniteBufferDir file/rec"])',
\ ['Find files in the directory of the current buffer',
\ [
\ '[SPC f f] is to find files in the directory of the current buffer',
@ -123,7 +123,7 @@ function! SpaceVim#layers#denite#config() abort
let lnum = expand('<slnum>') + s:lnum - 1
call SpaceVim#mapping#space#def('nnoremap', ['p', 'f'], 'call call('
\ . string(s:_function('s:warp_denite')) . ', ["Denite file_rec"])',
\ . string(s:_function('s:warp_denite')) . ', ["Denite file/rec"])',
\ ['find files in current project',
\ [
\ '[SPC p f] is to find files in the root of the current project',
@ -132,7 +132,7 @@ function! SpaceVim#layers#denite#config() abort
\ ]
\ ],
\ 1)
nnoremap <silent> <C-p> :call <SID>warp_denite('Denite file_rec')<cr>
nnoremap <silent> <C-p> :call <SID>warp_denite('Denite file/rec')<cr>
let lnum = expand('<slnum>') + s:lnum - 1

View File

@ -36,13 +36,13 @@ if !s:sys.isWindows
if executable('rg')
" For ripgrep
" Note: It is slower than ag
call denite#custom#var('file_rec', 'command',
call denite#custom#var('file/rec', 'command',
\ ['rg', '--hidden', '--files', '--glob', '!.git', '--glob', '']
\ + zvim#util#Generate_ignore(g:spacevim_wildignore, 'rg')
\ )
elseif executable('ag')
" Change file_rec command.
call denite#custom#var('file_rec', 'command',
" Change file/rec command.
call denite#custom#var('file/rec', 'command',
\ ['ag' , '--nocolor', '--nogroup', '-g', '']
\ + zvim#util#Generate_ignore(g:spacevim_wildignore, 'ag')
\ )
@ -51,13 +51,13 @@ else
if executable('pt')
" For Pt(the platinum searcher)
" NOTE: It also supports windows.
call denite#custom#var('file_rec', 'command',
call denite#custom#var('file/rec', 'command',
\ ['pt', '--nocolor', '--ignore', '.git', '--hidden', '-g=', ''])
endif
endif
call denite#custom#alias('source', 'file_rec/git', 'file_rec')
call denite#custom#var('file_rec/git', 'command',
call denite#custom#alias('source', 'file/rec/git', 'file/rec')
call denite#custom#var('file/rec/git', 'command',
\ ['git', 'ls-files', '-co', '--exclude-standard'])
" FIND and GREP COMMANDS